-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't add buildings to a node added through the admin panel #281
Comments
Fixed the search fields. Now need to do the same with the installs and buildings. I think I can just hack the inline template I hacked already to do this. Did you know that this URL works? It'll populate the fields. http://127.0.0.1:8000/admin/meshapi/building/add/?primary_node=7985 |
Might have a solution to this. Stay tuned. |
So, I hacked in a button to create a new object, but I don't think there's an easy way to add existing objects. I'd need to write a custom widget for that. https://forum.djangoproject.com/t/manytoone-dropdown-inline/25931/4 |
I might need to table this for a bit and think about it. I think the workaround is to create a building first, then create a node, then go back to the building and add the node. |
I have created a thread about this: https://forum.djangoproject.com/t/search-for-and-add-reverse-foreign-keys/30400 |
OK now I have a fix for it. Trying to make it look pretty. |
There's simply no option. I believe it's possible to add a node to a building, but a building cannot be added to a node.
On the building page...
This should be a search field
The text was updated successfully, but these errors were encountered: