Changes between Initial Version and Version 2 of Ticket #10957


Ignore:
Timestamp:
Apr 29, 2009, 8:11:03 AM (16 years ago)
Author:
Karen Tracey
Comment:

Fixed formatting.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10957 – Description

    initial v2  
    11I needed to change admin site for User class from auth, because I need to make first name and last name required. I subclassed Admin class for User and changed form:
    22
     3
     4{{{
     5#!python
    36class UserChangeForm(ModelForm):
    47        username = RegexField(label=_("Username"), max_length=30, regex=r'^\w+$',
     
    1013        class Meta:
    1114                model = User
     15
     16}}}
    1217
    1318Without first_name and last_name fields defined, admin displays it translated into polish, with first letter capitalized, like this:
Back to Top