ForeignKey related_name reverse lookup raises AttributeError #116
Replies: 7 comments 9 replies
-
@devkral did we change the internal check here? |
Beta Was this translation helpful? Give feedback.
-
Correction, this also does not work as expected. |
Beta Was this translation helpful? Give feedback.
-
@devkral lets see what happened here as well, we might have introduced a regression with the internal refactoring. |
Beta Was this translation helpful? Give feedback.
-
can you provide a full example? |
Beta Was this translation helpful? Give feedback.
-
I get the issue: |
Beta Was this translation helpful? Give feedback.
-
should be fixed now. Please try again |
Beta Was this translation helpful? Give feedback.
-
@devkral @edimedia with this big new release of 0.12.0 of Edgy, you should see all the good things and improvements added by @devkral |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Get all user's scopes
Check the filter lookup
permission_scopes ==> related_name
user ==> ForeignKey
id ==> a UUIDField
BUT this works correctly
Models
> User model
> Scope model
> Permission model
The exception is raised at
select_from.c.id == getattr(table.c, lookup_field)
byselect_from.c.id
edgy/edgy/core/db/querysets/base.py
Line 244 in 791f604
When i changed the code to this, the first query works as expected
Beta Was this translation helpful? Give feedback.
All reactions