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
When you create an new instance of a model you cannot print it or use it in logs, because the repr method of Model tries to loop through the identity parameter of inspect(), which is None.
After persisting to the database the instance can be printed.
When you create an new instance of a model you cannot print it or use it in logs, because the repr method of Model tries to loop through the identity parameter of inspect(), which is None.
After persisting to the database the instance can be printed.
example:
Where User is defined like:
The text was updated successfully, but these errors were encountered: