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

BaseModel.get_absolute_url() returns an error instead of raising it #4751

Closed
Dav-C opened this issue Nov 3, 2023 · 0 comments · Fixed by #4752
Closed

BaseModel.get_absolute_url() returns an error instead of raising it #4751

Dav-C opened this issue Nov 3, 2023 · 0 comments · Fixed by #4752
Assignees
Labels
type: bug Something isn't working as expected

Comments

@Dav-C
Copy link
Contributor

Dav-C commented Nov 3, 2023

Environment

  • Nautobot version (Docker tag too if applicable): 2.0.3
  • Python version: 3.8
  • Database platform, version: postgres
  • Middleware(s):

Steps to Reproduce

  1. Create a JobLogEntry object using JobResult.log() and provide an object that does not have get_absolute_url() defined.

A JobLogEntry should be created

Observed Behavior

TypeError: 'AttributeError' object is not subscriptable

return AttributeError(f"Cannot find a URL for {self} ({self._meta.app_label}.{self._meta.model_name})")

@Dav-C Dav-C added triage This issue is new and has not been reviewed. type: bug Something isn't working as expected labels Nov 3, 2023
@glennmatthews glennmatthews removed the triage This issue is new and has not been reviewed. label Nov 6, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working as expected
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants