Changes between Initial Version and Version 2 of Ticket #10957
- Timestamp:
- Apr 29, 2009, 8:11:03 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10957 – Description
initial v2 1 1 I 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: 2 2 3 4 {{{ 5 #!python 3 6 class UserChangeForm(ModelForm): 4 7 username = RegexField(label=_("Username"), max_length=30, regex=r'^\w+$', … … 10 13 class Meta: 11 14 model = User 15 16 }}} 12 17 13 18 Without first_name and last_name fields defined, admin displays it translated into polish, with first letter capitalized, like this: