add default ip_address for Rating model (bug 746765)
This commit is contained in:
Родитель
f2d346435c
Коммит
de10cfde65
|
@ -0,0 +1 @@
|
|||
ALTER TABLE ratings CHANGE COLUMN ip_address ip_address char(15) NOT NULL;
|
|
@ -31,7 +31,7 @@ class Rating(amo.models.ModelBase):
|
|||
|
||||
score = models.PositiveSmallIntegerField(null=True)
|
||||
body = TranslatedField(require_locale=False)
|
||||
ip_address = models.IPAddressField()
|
||||
ip_address = models.IPAddressField(default='0.0.0.0')
|
||||
|
||||
editorreview = models.BooleanField(default=False)
|
||||
flag = models.BooleanField(default=False)
|
||||
|
|
Загрузка…
Ссылка в новой задаче