Exemplo n.º 1
0
class oauthqquser(basemodel)
    user=models.ForeignKey("users.User", on_delete=models.CASCADE)
    openid=models.CharField(max_length=64,verbose_name="openid",db_indexxTrue)
    weibotoken=models.charfield(max_length=64,verbose_name="weibotokrn")

    class Meta:
        db_table="tb_oauth"
        verbose_name="第三方登录用户数据"
        verbose_name_plural=verbose_name
Exemplo n.º 2
0
class User(models.Model):
    first_name = models.Charfield(max_length=255)
    last_name = models.Charfield(max_length=255)
    email = models.Charfield(max_length=255)
    password = models.charfield(max_length=255)
    date_of_birth = models.DateTimeField()
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)
    objects = UserManager();
Exemplo n.º 3
0
class Subscribers(models.Model):
	email = models.Charfield(max_lenght=1000, blank=False, null=False, help_text='Email address')
	full_name = models.charfield(max_lenght=1000, blank=False, null=false, help_text='First and last name')
	
	def __str__(self):
		return self.full_name
		
	class Meta:
		verbose_name = "Subscriber"
		verbose_name_plural "Subscribers"	
Exemplo n.º 4
0
    permanent_add=models.CharField(max_length=10)
    ####### find a better way to save contacts
    contact_father=models.IntegerField(max_length=10)
    contact_mother=
    contact_candidate=
    contact_other=

    #
    fee_josaa_amount=models.IntegerField()
    fee_josaa_date = models.DateField(auto_now=False, auto_now_add=False, default=None)
    fee_NITH_amount=models.IntegerField()
    fee_NIT_receipt_no=models.CharField()
    fee_nith_date=models.DateField(auto_now=False,auto_now_add=False,default=None)

    #
    entry_no=models.charfield(default=None)
    section=models.CharField()
    subsection=models.CharField()


class DocumentInfo(models.Models) :
    jee_roll_no=models.BigIntegerField(primary_key=True)
    year_of_admission=models.IntegerField(primary_key=True)

    ###documents
    provisional_admission_letter=models.BooleanField(default=False)
    jee_score_card=models.BooleanField(default=False)
    jee_admit_card=models.BooleanField(default=False)
    class_10_certificate=models.BooleanField(default=False)
    class_12_marksheet=models.BooleanField(default=False)
    character_certificate=models.BooleanField(default=False)
Exemplo n.º 5
0
class Comment(Models.Model):
    content = models.charfield()
    publish_time = models.datefield(publish_time)
    author_name = models.charfield(length=50)
    author_email = models.charfield(length=100)
    post_id = models.ForeignKey(Post, on_delete=models.CASCADE, null=True)
Exemplo n.º 6
0
class Album(models.model):
    artist = models.charfield(max_lenght=250)
    album_title = models.charfield(max_lenght=500)
    genre = models.charfield(max_lenght=100)
    album_logo = models.charfield(max_leght=1000)
Exemplo n.º 7
0
class Songs(models.model):
    album = models.foreignkey(Album, on_delete=models.CASCADE)
    file_type = models.charfield(max_lenght=10)
    song_title = models.charfield(max_lenght=250)