1👍
Your error is here:
user = self.model(
username = self.username,
The Manager does not have a username – you mean just
user = self.model(
username = username,
because you are passing it as a parameter. The full traceback would have made that obvious.
Source:stackexchange.com