Add CaseStudyDraft.created
This commit is contained in:
@ -20,8 +20,13 @@ class CaseStudyDraft(models.Model):
|
||||
User, on_delete=models.CASCADE
|
||||
)
|
||||
|
||||
created = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
data = models.TextField()
|
||||
|
||||
def __str__(self):
|
||||
return "{0.author.username}, {0.created:%Y-%m-%d %H:%M}".format(self)
|
||||
|
||||
|
||||
class SpatialRefSys(connection.ops.spatial_ref_sys()):
|
||||
def __str__(self):
|
||||
|
Reference in New Issue
Block a user