django_filters.py -> _get_model_field : AttributeError: 'NoneType' object has no attribute 'split' #519
Labels
enhancement
New feature or request
fix confirmation pending
issue has been fixed and confirmation from issue reporter is pending
Problem
In some cases
filter_field.field_name
isNone
. so there is an error:for example I got this error by using django-property-filter. here is the code:
Solution
just check it before getting the attribute,
filter_field.field_name is not None:
, So:The text was updated successfully, but these errors were encountered: