Mercurial > public > sg101
comparison downloads/models.py @ 1028:5ba2508939f7
Django 1.8 changes; first batch.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 15 Dec 2015 21:01:07 -0600 |
parents | a5ebc74dc3f3 |
children | eeaf387803c6 |
comparison
equal
deleted
inserted
replaced
1027:cd4db27c90e3 | 1028:5ba2508939f7 |
---|---|
55 description = models.TextField() | 55 description = models.TextField() |
56 html = models.TextField(blank=True) | 56 html = models.TextField(blank=True) |
57 file = models.FileField(upload_to=download_path) | 57 file = models.FileField(upload_to=download_path) |
58 user = models.ForeignKey(User) | 58 user = models.ForeignKey(User) |
59 date_added = models.DateTimeField(db_index=True) | 59 date_added = models.DateTimeField(db_index=True) |
60 ip_address = models.IPAddressField('IP Address') | 60 ip_address = models.GenericIPAddressField('IP Address') |
61 update_date = models.DateTimeField(db_index=True, blank=True) | 61 update_date = models.DateTimeField(db_index=True, blank=True) |
62 | 62 |
63 class Meta: | 63 class Meta: |
64 abstract = True | 64 abstract = True |
65 | 65 |