class authors models Model login models CharField max_length 32 date_f

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
class authors(models.Model):
login = models.CharField(max_length=32)
date_first_mark = models.DateTimeField('date first mark')
class mark(models.Model):
title = models.CharField(max_length=32)
content = models.TextField()
author = models.ForeignKey(authors)
review = models.IntegerField()
public = models.BooleanField(False)
date_add = models.DateTimeField('mark add')