add modified and created fields for apps and releases

This commit is contained in:
Bernhard Posselt 2016-06-05 14:03:40 +02:00
Родитель 9dc2d7bfc9
Коммит c45df19695
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -16,6 +16,8 @@ class App(models.Model):
developer_docs = models.URLField(max_length=256, blank=True)
issue_tracker = models.URLField(max_length=256, blank=True)
website = models.URLField(max_length=256, blank=True)
created = models.DateTimeField(auto_now_add=True)
last_modified = models.DateTimeField(auto_now=True)
class AppRelease(models.Model):
@ -29,10 +31,12 @@ class AppRelease(models.Model):
platform_min = models.CharField(max_length=32)
platform_max = models.CharField(max_length=32, blank=True)
download = models.URLField(max_length=256, blank=True)
created = models.DateTimeField(auto_now_add=True)
last_modified = models.DateTimeField(auto_now=True)
class Screenshot(models.Model):
image = models.ImageField()
image = models.URLField(max_length=256)
app = models.ForeignKey(App, on_delete=models.CASCADE)