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
I have faced a problem with a RelativeField. According to docs it is possible to create custom RelativeField in order to create an alias for search fields. The simplest example is the following (not tested, just example):
The following exception is raised when I search by group_alias:
django.core.exceptions.FieldError: Cannot resolve keyword 'group_alias' into field. Choices are: list of User fields is here
After a bit of research I have realized that get_lookup_name isn't called for RelationField during name resolving. In other words we should replace item from the name.parts array with custom lookup name. If this is true I'm ready to create PR.
The text was updated successfully, but these errors were encountered:
Hi! Big thanks for your really useful package.
I have faced a problem with a
RelativeField
. According to docs it is possible to create customRelativeField
in order to create an alias for search fields. The simplest example is the following (not tested, just example):The following exception is raised when I search by
group_alias
:After a bit of research I have realized that
get_lookup_name
isn't called forRelationField
during name resolving. In other words we should replace item from thename.parts
array with custom lookup name. If this is true I'm ready to create PR.The text was updated successfully, but these errors were encountered: