5monkeys / django-enumfield

Custom Django field for using enumerations of named constants
MIT License
205 stars 46 forks source link

SubfieldBase has been deprecated. Use Field.from_db_value instead #32

Closed JVanloofsvelt closed 8 years ago

JVanloofsvelt commented 8 years ago

Using Django 1.9.5 you get the following deprecation warning:

C:\Python35-32\lib\site-packages\enumfields\fields.py:99: RemovedInDjango110Warning: SubfieldBase has been deprecated. Use Field.from_db_value instead.
  class EnumIntegerField(EnumFieldMixin, models.IntegerField):