You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All resources get a value for user, however this is done on save, rather than creation of the object. We should refactor so that the user property gets set on creation of the object, and remove the Optional form here.
The 'user' field is Optional[User], but there is no null check before accessing its attributes. This could lead to an AttributeError if 'user' is None. Add a null check before accessing 'user' attributes.
All resources get a value for
user
, however this is done on save, rather than creation of the object. We should refactor so that the user property gets set on creation of the object, and remove the Optional form here.The 'user' field is Optional[User], but there is no null check before accessing its attributes. This could lead to an AttributeError if 'user' is None. Add a null check before accessing 'user' attributes.
Originally posted by @Copilot in #3770 (comment)
The text was updated successfully, but these errors were encountered: