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
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
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:
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
>
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
5 matches
Mail list logo