ValueError: Cannot assign "": "Restraint.user" must be a "User" instance.

2020-12-13 Thread Anselme Gildas Tchassem Boutchouang
Hello, This error is raised when I run a migration allowing me to fill in the bd. To try to resolve the error, I formatted the User object as a *SimpleLazyObject *because I found that this is the type of object returned by the *self.request.user* instance in a view. Here is the model from which I

ValueError: Cannot assign "": "Restraint.user" must be a "User" instance.

2020-12-12 Thread Anselme Gildas Tchassem Boutchouang
Hello, This error is raised when I run a migration allowing me to fill in the bd. To try to resolve the error, I formatted the User object as a *SimpleLazyObject *because I found that this is the type of object returned by the *self.request.user* instance in a view. Here is the model from which I f

Re: ValueError: Cannot assign "": "Restraint.user" must be a "User" instance.

2020-12-12 Thread Anselme Gildas Tchassem Boutchouang
Thank you in advance for your solution Le sam. 12 déc. 2020 à 07:51, Anselme Gildas Tchassem Boutchouang < tbago...@gmail.com> a écrit : > Hello, > This error is raised when I run a migration allowing me to fill in the bd. > To try to resolve the error, I formatted the User object as a > *Simple