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
I would like to use a custom user model. I set a StripeUserModel in AUTH_USER_MODEL in settings.py.
It should hold djstripe.Customer information as a field, somehow like e.g. ...
When I run makemigrations, I get a circular import issue with the 0001_initial for my app, and djstripe.
Commenting out "customer" in the above model definition makes it work.
How am I able to use a custom user model that references the djstripe fields without circular import errors?
Hope somebody is able to help. Thanks in advance.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to use a custom user model. I set a
StripeUserModel
in AUTH_USER_MODEL in settings.py.It should hold djstripe.Customer information as a field, somehow like e.g. ...
When I run makemigrations, I get a circular import issue with the 0001_initial for my app, and djstripe.
Commenting out "customer" in the above model definition makes it work.
How am I able to use a custom user model that references the djstripe fields without circular import errors?
Hope somebody is able to help. Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions