Yuego / django-fias

Other
113 stars 70 forks source link

FIASHouse CharFields must define a 'max_length' attribute #73

Closed PyKaB closed 7 years ago

PyKaB commented 7 years ago

https://github.com/Yuego/django-fias/commit/552e227f8b6afc1fb3f907a0ca347995e37a1437#diff-35fb5a3c1fe934088b76c78b57d77e32

Изменены типы данных для модели FIASHouse с PositiveSmallIntegerField на CharField, но не указан обязательный для CharField атрибут max_length.

Как результат: SystemCheckError: System check identified some issues:

ERRORS: shop.Order.apartment: (fields.E120) CharFields must define a 'max_length' attribute. shop.Order.building: (fields.E120) CharFields must define a 'max_length' attribute. shop.Order.house: (fields.E120) CharFields must define a 'max_length' attribute.