need help with models fields with relationships to other models. #144
Replies: 2 comments 1 reply
-
I created #145 because I think it's a bug, so I'm going to lock this thread. Thanks for letting me know! I'm going to fix it as soon as I can. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think the new version 0.26.0 should fix this issue. I changed a lot of code behind-the-scenes to handle Django models and QuerySets better including ForeignKeys. Please check it out and let me know if you run into any issues! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I ask for help to clarify what I am doing wrong.
If the model "Book" has a field with relationships with another model then it gives the following error:
File "/venv/lib/python3.8/site-packages/django_unicorn/views.py", line 116, in _set_property_from_data
_set_property_from_data(field, field.name, value)
AttributeError: 'Traza' object has no attribute 'name'
However, if the relationship is empty, it does not happen. This only happens when a field is related to another model and has an assigned value.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions