Hi,

Your table myauth_myuser is used to store your users. But Django create 
additional custom tables for groups and user_permissions related to the custom 
user model and which are useless and I don't uderrstand why. If somebody have 
an explanation or could tell me how to avoid the creation of the following 
tables using the migrate command it could be great : myauth_group - 
myauth_user_permissions

Sylvain.
--
> From: [email protected]
> Date: Wed, 14 Oct 2015 23:13:52 -0300
> Subject: Re: Django 1.8: subclass AbstractUser, App 'auth' doesn't have a 
> 'myuser' model.
> To: [email protected]
> 
> 2015-10-14 15:21 GMT-03:00 syl pingus <[email protected]>:
> > Hello Norberto,
> >
> > In your first example, I think the name of your apps in the apps.py config
> > file conflicts with the core Django auth module and it could explains the
> > second exception you get.
> 
> Yes. I know, that's why I added label="myauth". The problem is Django
> 1.6 allowed to call it 'auth'. Yes, it was our fault, we should have
> called it accounts or something else.
> 
> 
> > When you use a custom model in Django, the "migrate" command always create
> > additional table for group and user_permissions but they are never filled in
> > throught the admin site. According to me, Django creates these tables but
> > they are useless. Why ? I don't really know... Maybe it's depending on the
> > table creation process.
> 
> I'm sorry, I think I'm not following you. Are you saying myauth_myuser
> are not used?
> 
> If I migrate this app to 1.8.5, and I add label="myauth" to avoid
> collision with django.contrib.auth, I lose the users. They're in the
> auth_myuser table, myauth_myuser is empty. If I create a user, the
> user is created in myauth_myuser table.
> 
> 
> > Sorry, my answer doesn't really help you but that's is my understanding of
> > custom user model process at this time.
> 
> Don't worry. I'll make a dB dump, change the tables by hand and import
> everything with label='myauth'. I was hoping there was a "Django way"
> to fix this problem.
> 
> Thanks,
> Norberto
> 
> -- 
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CADut3oCrCefSmnrzXg-Z20SjEvou2ob8Xr_47TGOMa7B_BrXbA%40mail.gmail.com.
> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/DUB114-W116096DC9E097FAE55C1DA5CA3E0%40phx.gbl.
For more options, visit https://groups.google.com/d/optout.

Reply via email to