Django - save user in another table

64 views
Skip to first unread message

milad ranaei siadat

unread,
Dec 22, 2016, 8:02:57 AM12/22/16
to Django users

Is there a way to save my user registration in another table from the database?

I don't want to mix AdminUsers with CommonUsers (All the tutorials I've seen, they save the registration inside auth_user)

The reasons:

  • CommonUsers have different columns and informations
  • CommonUsers can upload content
  • AdminUsers verify the content uploaded by the CommonUsers and make sure there is nothing inappropriate

What do I need to use? models? modelform? forms?


please help me

Avraham Serour

unread,
Dec 22, 2016, 8:17:55 AM12/22/16
to django-users
I think you should create another table called Profile that will hold all the addtitional info the common users have that the admins do not.
The auth.user table is useful for handling password, authentication, session and common features all users have.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django...@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/e1ae8ddc-a70d-4c76-bdd4-8947871ee1f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages