Skip to content

Conversation

@arthanson
Copy link
Collaborator

Fixes: #16546

@arthanson arthanson changed the title DRAFT: 16546 define get_absolute_url method in NetBoxModel 16546 define get_absolute_url method in NetBoxModel Oct 7, 2024
@arthanson arthanson marked this pull request as ready for review October 8, 2024 00:00
@jeremystretch jeremystretch added this to the v4.2 milestone Oct 9, 2024
Copy link
Member

@jeremystretch jeremystretch left a 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.

Copy link
Member

@jeremystretch jeremystretch left a 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.

@jeremystretch jeremystretch merged commit ed1327e into feature Oct 10, 2024
6 checks passed
@jeremystretch jeremystretch deleted the 16546-get-absulute-url branch October 10, 2024 13:59
bctiemann pushed a commit that referenced this pull request Oct 16, 2024
* 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]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants