Browse Source

Add TODO comments to remove max_length when Django 1.7 support is dropped

master
David Winterbottom 10 years ago
parent
commit
e9d4cdc17f

+ 1
- 0
src/oscar/apps/catalogue/reviews/abstract_models.py View File

@@ -42,6 +42,7 @@ class AbstractProductReview(models.Model):
42 42
     name = models.CharField(
43 43
         pgettext_lazy(u"Anonymous reviewer name", u"Name"),
44 44
         max_length=255, blank=True)
45
+    # TODO Remove the max_length kwarg when support for Django 1.7 is dropped
45 46
     email = models.EmailField(_("Email"), max_length=75, blank=True)
46 47
     homepage = models.URLField(_("URL"), blank=True)
47 48
 

+ 1
- 0
src/oscar/apps/customer/abstract_models.py View File

@@ -306,6 +306,7 @@ class AbstractProductAlert(models.Model):
306 306
     user = models.ForeignKey(AUTH_USER_MODEL, db_index=True, blank=True,
307 307
                              null=True, related_name="alerts",
308 308
                              verbose_name=_('User'))
309
+    # TODO Remove the max_length kwarg when support for Django 1.7 is dropped
309 310
     email = models.EmailField(_("Email"), db_index=True, blank=True,
310 311
                               max_length=75)
311 312
 

+ 1
- 0
src/oscar/apps/order/abstract_models.py View File

@@ -78,6 +78,7 @@ class AbstractOrder(models.Model):
78 78
 
79 79
     # Use this field to indicate that an order is on hold / awaiting payment
80 80
     status = models.CharField(_("Status"), max_length=100, blank=True)
81
+    # TODO Remove the max_length kwarg when support for Django 1.7 is dropped
81 82
     guest_email = models.EmailField(_("Guest email address"), max_length=75,
82 83
                                     blank=True)
83 84
 

Loading…
Cancel
Save