Re: Django model question from a newbee

2010-12-16 Thread Reino
Thanks Tom, I was confusing an instance of a ModelForm with an instance of the Model it represents. You suggestion about the mod_time is good idea. However, I still can't get the password stored as an md5 hash. Matteius, it is not an option to use Djangos User object, and user database. Matteius

Re: Django model question from a newbee

2010-12-16 Thread Matteius
Ok I did not mean to send that last post, it was an accident. 1.) Add exclude tuple here: class CasUserForm(ModelForm): class Meta: exclude = ('field1', 'field2') Now go ahead with part 2) 2.) Hide passwords in the form either by manually calling the fields and specifying a

Re: Django model question from a newbee

2010-12-16 Thread Matteius
OK So these are UI issues and how you are saving Users to the database. The database field itself is a CharField. 1.) To hide form elements add a tupple inside the FormField under class meta like so: class CasUserForm(ModelForm): exclude = [field1, field2] 2.) On Dec 16, 6:39 am, Reino wrote:

Re: Django model question from a newbee

2010-12-16 Thread Tom Evans
On Thu, Dec 16, 2010 at 12:39 PM, Reino wrote: > I am new to Django, and I am building a simple application where I am > going to manage a legacy user database from Djangos admin interface. > Below is how my model looks like. > > My goal is to hide some of the fields in the form where I edit/add >

Django model question from a newbee

2010-12-16 Thread Reino
I am new to Django, and I am building a simple application where I am going to manage a legacy user database from Djangos admin interface. Below is how my model looks like. My goal is to hide some of the fields in the form where I edit/add users. However, currently I can see all the fields except