How can I make the sqladmin panel use the init method of the model? #794
Unanswered
ddosmukhambetov
asked this question in
Q&A
Replies: 1 comment
-
And you are seeing this issue when you create a new |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a specific model with an init method that generates a slug:
And i have AdminView:
But when creating an object from the admin panel, I get the following error:
decoding to str: need a bytes-like object, NoneType found
And if I remove the init method from the model, then everything works, how can I make the initialization of the model take place first?
Beta Was this translation helpful? Give feedback.
All reactions