-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Minor DRF traceback #9878
Comments
Looks like it is caused by CurrentUserDefault in the following code:
|
Great find @arthanson ! |
Did look into it. The default function is called for JournalEntrySerializer and WritableJournalEntrySerializer. On the call for WritableJournalEntry the context is empty. The following diff fixes the traceback, but I am not yet sure if it has other implications or if more variables should be added:
|
Marking as blocked as we should figure out #9608 first. |
I tested @amhn's proposed change and the only difference in the schema output was adding a default value of 1 for WritableJournalEntry. Seems like a valid fix to me. |
NetBox version
v3.2.7
Python version
3.10
Steps to Reproduce
Expected Behavior
No Error
Observed Behavior
Nothing major, just noise in the logs and possibly a delay in loading the swagger page.
The text was updated successfully, but these errors were encountered: