Hi again, I have a subclass from AbstractUser
1 from django.contrib.auth.models import AbstractUser 2 from django.conf import settings 3 4 class cpUser(AbstractUser): 5 twitter = models.CharField(max_length=100) 6 def __unicode__(self): 7 return self.username and AUTH_USER_MODEL = 'account.cpUser' in my settings.py set. How do i get a password field to set and reset a password in my admin app? Adding the password field to admin.py does obviously not work as it enters plain text and not the hashed password. 1 from django.contrib import admin 2 class cpUserAdmin(admin.ModelAdmin): 3 fields = ['twitter','username', 'first_name', 'last_name', 'password',] 4 ~~~~~~~~ 5 admin.site.register(cpUser, cpUserAdmin) Do i have to set a passwort field to the models.py or can i geht that from the models which i "abstracted" from (as done with username, first_name, last_name...) Best regards Michael
signature.asc
Description: Digital signature