Skip to content

Commit 44fb200

Browse files
committed
add missing doc string
1 parent b88626c commit 44fb200

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

django_enum/filters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class FilterSet(filterset.FilterSet):
4343
"""
4444
@classmethod
4545
def filter_for_lookup(cls, field, lookup_type):
46+
"""For EnumFields use the EnumFilter class by default"""
4647
if isinstance(field, EnumMixin) and getattr(field, 'enum', None):
4748
return EnumFilter, {'enum': field.enum}
4849
return super().filter_for_lookup(field, lookup_type)

doc/source/refs.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.. _GitHub: https://github.com/bckohan/enum-properties
44
.. _PyPI: https://pypi.python.org/pypi/enum-properties
55
.. _Enum: https://docs.python.org/3/library/enum.html#enum.Enum
6+
.. _enumerations: https://docs.python.org/3/library/enum.html#enum.Enum
67
.. _ValueError: https://docs.python.org/3/library/exceptions.html#ValueError
78
.. _get_db_prep_value: https://docs.djangoproject.com/en/stable/ref/models/fields/#django.db.models.Field.get_db_prep_value
89
.. _from_db_value: https://docs.djangoproject.com/en/stable/ref/models/fields/#django.db.models.Field.from_db_value

0 commit comments

Comments
 (0)