Re: Django Admin site and password field

2011-05-13 Thread Gabe
Thanks for all suggestion. Subject to close (if it was forum ;)) On 12 Maj, 23:00, Michal Petrucha wrote: > On Thu, May 12, 2011 at 09:51:24AM -0700, Gabe wrote: > > First of all thx for all replies. > > > For now I don`t use auth.User model I would like to create my own. So > > I have written mo

Re: Django Admin site and password field

2011-05-12 Thread Michal Petrucha
On Thu, May 12, 2011 at 09:51:24AM -0700, Gabe wrote: > First of all thx for all replies. > > For now I don`t use auth.User model I would like to create my own. So > I have written model class Users: > > [...] > > Then I have registered it in admin panel by editing admin.py among > with another

Re: Django Admin site and password field

2011-05-12 Thread Gabe
First of all thx for all replies. For now I don`t use auth.User model I would like to create my own. So I have written model class Users: class Users(models.Model): login = models.CharField(max_length=64,error_messages={'required':'Podanie loginu jest obowiązkowe','unique':'Podany login już i

Re: Django Admin site and password field

2011-05-12 Thread Michal Petrucha
On Wed, May 11, 2011 at 09:58:14PM -0700, Gabe wrote: > I am using built-in Django admin. In my models.py file password field > is defined: > > password = models.CharField(max_length=64) > > I just can`t see password type field for models. It is hard for us to guess what you're actually tryi

Re: Django Admin site and password field

2011-05-12 Thread Jirka Vejrazka
I have not done it myself, but you might need to specify custom widget for your field. Take a look at PasswordInput widget here: http://docs.djangoproject.com/en/1.3/ref/forms/widgets/ HTH Jirka -- You received this message because you are subscribed to the Google Groups "Django users" gr

Re: Django Admin site and password field

2011-05-12 Thread Oleg Lomaka
Sorry, it's unclear you use django's auth.User model or you have custom model for your users? If you have your custom model, then show an admin.py file from your app directory. On Thu, May 12, 2011 at 7:58 AM, Gabe wrote: > I am using built-in Django admin. In my models.py file password field >

Re: Django Admin site and password field

2011-05-11 Thread Gabe
I am using built-in Django admin. In my models.py file password field is defined: password = models.CharField(max_length=64) I just can`t see password type field for models. On 11 Maj, 20:26, Shawn Milochik wrote: > It sounds like you're not using the built-in Django admin, which would > m

Re: Django Admin site and password field

2011-05-11 Thread Shawn Milochik
It sounds like you're not using the built-in Django admin, which would make your life easier. Assuming you want to do it the hard way, you can just use a PasswordInput widget. http://docs.djangoproject.com/en/1.3/ref/forms/widgets/ -- You received this message because you are subscribed to t

Django Admin site and password field

2011-05-11 Thread Gabe
Hi all, this is my first post on this group so be gentle ;) I`ve crated a model class and an admin site. My model Users has password field. How can I rewrite it to be a password field and to get stars when I`am typing password (when creating a new user by admin site)? Sorry for my English but it