This commit is contained in:
2017-12-12 13:19:48 +03:00
parent 596d9e0358
commit 34096bf8c3

View File

@ -10,7 +10,7 @@ class Post(models.Model):
name = models.CharField(max_length=30, blank=True) name = models.CharField(max_length=30, blank=True)
file = models.FileField(upload_to='images') file = models.FileField(upload_to='images')
thumb_name = property(thumb_name) thumb_name = property(thumb_name)
orig_name = property(orig_name) orig_name = property(orig_name)
def publish(self): def publish(self):
self.published_date = timezone.now() self.published_date = timezone.now()