Skip to content
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

Add related names to django models #2418

Closed
johannaengland opened this issue May 19, 2022 · 1 comment
Closed

Add related names to django models #2418

johannaengland opened this issue May 19, 2022 · 1 comment
Assignees

Comments

@johannaengland
Copy link
Contributor

In Argus most (all?) foreign keys and many to many fields have a related name in the form of <relation_as_lower_case_with_underscores>s set instead of the automatically generated <relation_as_lower_case>_set, which makes backwards calling of relations clearer.

Add this also to the nav models and amend existing calls to the new related names.

@johannaengland
Copy link
Contributor Author

All related pull requests (#2539, #2540, #2541, #2542, #2544, #2546, #2547, #2549, #2550, #2551) are now merged, so this is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants