You should use settings way since it is preferred.

Since importing models to other models is considered bad thing to do.

In theory you could use string format directly but by doing that you couple
your other app with your app with custom user.

Is there a reason you would like to refer to it? Note that to get model in
other code than in model definitions there are helper functions in
django.contrib.auth.

16.1.2018 21.18 "McKinley" <seansmckin...@gmail.com> kirjoitti:

> Are you able to have a foreign key relationship from a model within the
> app that does not contain the extended user model to the extended user
> model in the other app?
>
> Is the only way to refer to the extended user model from the second app
> settings.AUTH_USER_MODEL?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/cb1cb2a4-5a4a-40e5-91f1-e980fbddd439%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/cb1cb2a4-5a4a-40e5-91f1-e980fbddd439%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHn91oc%3DNa2npofrQfhMQS0SRJpR1dArg4UYc2KkvHxjcx_4Wg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to