-
Notifications
You must be signed in to change notification settings - Fork 2.9k
16546 define get_absolute_url method in NetBoxModel #17693
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't address subclasses of OrganizationalModel. We should also avoid duplicating the method if possible. It might be cleaner to define get_absolute_url() on NetBoxFeatureSet instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Attempting to run makemigrations fails:
django.core.exceptions.FieldError: 'action_object' cannot be specified for EventRule model form as it is a non-editable field
(Make sure you have the pre-commit hook enabled to catch these errors on commit.)
Edit: My mistake; this was because I still had Django 5.1 installed from a previous PR.
* 16546 define get_absolute_url method in NetBoxModel * 16546 define get_absolute_url method in NetBoxModel * 16546 define get_absolute_url method in NetBoxModel * 16546 move get_absolute_url to NetBoxFeatureSet * 16546 fix CircuitTermination * Fix linebreaks --------- Co-authored-by: Jeremy Stretch <[email protected]>
Fixes: #16546