django-enumfield
django-enumfield copied to clipboard
Custom Django field for using enumerations of named constants
Note: we should probably hold this one off until the latest changes on master has been released to pypi
The current released version of enumfield does not allow subclassing in a way that the parent enum values are inherited. With this change, you can declare an enum with a...
Hi, I have an enumfield that I have disabled as part of a form with disabled=True. however then the validation always validates the field as being wrong. After some debugging...
It looks like development and support of `django-enumfield` for Django 1.9 and 1.10 is stalling a little, so maybe it would help maintenance if the project was adopted by [jazzband](https://jazzband.co/)...
In the 2.0 release, _get_FIELD_display throws an error if the value is None. I think the code needs to be changed to: ``` def _get_FIELD_display(self, cls): value = getattr(cls, self.attname)...
After upgrading to python 3.9.2 I am now unable to import from the enumfields package 3.9.2 changed the way subclassing and multiple inheritance works so it might be related? ```...
This is using Django 1.9 with django-enumfield 1.3b2 ``` class Hike(models.Model): class ExposureType(enum.Enum): UNKNOWN = 0 exposure_type = enum.EnumField(ExposureType, default=ExposureType.UNKNOWN) ``` generates ``` operations = [ migrations.AlterField( model_name='hike', name='exposure_type', field=django_enumfield.db.fields.EnumField(default=0,...
We have a lot of string tuples, while I agree that it would take infinitely less space in the db (space is cheap now a days); we have dba's that...
All major databases that Django support already supports enums at the database level. - Postgres supports [enums](http://postgresguide.com/sexy/enums.html) - MySQL supports [enums](http://dev.mysql.com/doc/refman/5.7/en/enum.html) - Oracle supports [enums](https://docs.oracle.com/cd/E17952_01/refman-5.6-en/enum.html) You can also implement [enums...
Hello, I'm doing some unittesting around a workflow which is enabled by `django-enumfield` enum `__transitions__`, and I'm seeing something unexpected. Suppose we had: ```py class StatusEnum(Enum): NEW = 0 PENDING...