That's the workaround we were about to implement. But what I was
searching for, was a more consistent way to modify the **model**
itself (which will be reflected into the database structure and
consequently in the forms), not the way Django handles the forms.
I think Django choice isn't so silly,
The way I achieved this was to make my own registration form and use
this:
email = forms.EmailField(widget=forms.TextInput(attrs=dict
(attrs_dict,maxlength=75)),label=_(u'Email address'))
where attrs_dict was earlier defined as:
attrs_dict = { 'class': 'required' }
also, the email address isn't
Hi all,
we've been using the django User model from contrib.auth.models
As we want to re-use as much code as possible, is there a way to edit
the class properties, making the "email" field required? As a default
this is not a required field. Gooogled for some answers but didn't
find one, but if I
3 matches
Mail list logo