<s> from django . db import models <EOL> from django . contrib . auth . models import User <EOL> class UserProfile ( models . Model ) : <EOL> user = models . OneToOneField ( User ) <EOL> def __unicode__ ( self ) : <EOL> return self . user . username <EOL> class Profile ( models . Model ) : <EOL> user = models . ForeignKey ( User ) <EOL> oauth_token = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> oauth_secret = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> def __unicode__ ( self ) : <EOL> return unicode ( self . user ) <EOL> class GithubProfile ( models . Model ) : <EOL> user = models . ForeignKey ( User ) <EOL> github_user = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> access_token = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> scopes = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> def __unicode__ ( self ) : <EOL> return unicode ( self . user ) <EOL> class TumblrProfile ( models . Model ) : <EOL> user = models . ForeignKey ( User ) <EOL> tumblr_user = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> access_token = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> access_token_secret = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> def __unicode__ ( self ) : <EOL> return unicode ( self . user ) <EOL> class InstagramProfile ( models . Model ) : <EOL> user = models . ForeignKey ( User ) <EOL> instagram_user = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> access_token = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> def __unicode__ ( self ) : <EOL> return unicode ( self . user ) <EOL> class TwitterProfile ( models . Model ) : <EOL> user = models . ForeignKey ( User ) <EOL> twitter_user = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> oauth_token = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> oauth_token_secret = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> def __unicode__ ( self ) : <EOL> return unicode ( self . user ) <EOL> class LinkedinProfile ( models . Model ) : <EOL> user = models . ForeignKey ( User ) <EOL> linkedin_user = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> access_token = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> def __unicode__ ( self ) : <EOL> return unicode ( self . user ) <EOL> class Snippet ( models . Model ) : <EOL> created = models . DateTimeField ( auto_now_add = True ) <EOL> title = models . CharField ( max_length = <NUM_LIT:100> , blank = True , default = '<STR_LIT>' ) <EOL> code = models . TextField ( ) <EOL> linenos = models . BooleanField ( default = False ) <EOL> class Meta : <EOL> ordering = ( '<STR_LIT>' , ) <EOL> class MeetupToken ( models . Model ) : <EOL> access_token = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> def __unicode__ ( self ) : <EOL> return unicode ( self . access_token ) <EOL> class FacebookProfile ( models . Model ) : <EOL> user = models . ForeignKey ( User ) <EOL> fb_user_id = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> time_created = models . DateTimeField ( auto_now_add = True ) <EOL> profile_url = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> access_token = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> class GoogleProfile ( models . Model ) : <EOL> user = models . ForeignKey ( User ) <EOL> google_user_id = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> time_created = models . DateTimeField ( auto_now_add = True ) <EOL> access_token = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> profile_url = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> class DropboxProfile ( models . Model ) : <EOL> user = models . ForeignKey ( User ) <EOL> dropbox_user_id = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> time_created = models . DateTimeField ( auto_now_add = True ) <EOL> access_token = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> class FoursquareProfile ( models . Model ) : <EOL> user = models . ForeignKey ( User ) <EOL> foursquare_id = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> time_created = models . DateTimeField ( auto_now_add = True ) <EOL> access_token = models . CharField ( max_length = <NUM_LIT:100> ) </s>
