-
Notifications
You must be signed in to change notification settings - Fork 1
Model concept
babsey edited this page Feb 21, 2011
·
5 revisions
- username (Character Field) -> required
- first_name (Character Field)
- last_name (Character Field)
- email (Email Field) -> required
- password (Character Field) -> required, dont store raw password, but encrypted from raw password
- is_active (Boolean Field) -> default=False, able to login in entire closed sites
- is_staff (Boolean Field) -> default=False, able login in admin site
this model is already implemented in Django -> DjangoBook: User
- user (OneToOne Field)
- activation_key(Character Field)
- key_expires (Datetime Field)
is required for activate new registered users
- title (Character Field)
- pub_date (Datetime Field)
- content (Text Field)