I have an updated user model and added two fields to it, mobile_number and role. The field role has two options Customer and Admin. Currently, I have made customer as the default value for role. Now what I want is when user signup the role should be a customer but when an admin create a user from Django admin it's role should be Admin.
-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/02a95589-3cae-4731-9a1a-66872d630e68%40googlegroups.com.
No comments:
Post a Comment