You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey
I was using an old version of django-filter and I added some non-model fields for filtering. for example for user I added a name filter with custom method which concats first_name and last_name and filter both of them but there is no name field in the User model.
After I updated to the latest version I faced this error:
TypeError: 'Meta.fields' must not contain non-model field names: name
I checked the codes and I found out this error happen here. in the comment it say warn if the field doesn't exist. but it actually raise a TypeError in line 349
I think it's better to make it a REAL warning instead a ERROR
The text was updated successfully, but these errors were encountered:
Hey
I was using an old version of django-filter and I added some non-model fields for filtering. for example for user I added a
name
filter with custom method which concatsfirst_name
andlast_name
and filter both of them but there is noname
field in theUser
model.After I updated to the latest version I faced this error:
I checked the codes and I found out this error happen here. in the comment it say
warn if the field doesn't exist.
but it actually raise aTypeError
in line 349I think it's better to make it a REAL warning instead a ERROR
The text was updated successfully, but these errors were encountered: