1 2 3 4 5 6 7 8 9 10 11 12 13 | class Phone(models.Model):
TYPES_CHOICES = (
('HOME', u('Home')),
('WORK', u('Work')),
('MOBILE', u('Mobile')),
('HOME_FAX', u('Fax (home)')),
('WORK_FAX', u('Fax (work)')),
('PAGER', u('Pager')),
('OTHER', u('Other'))
)
number = models.CharField(_('Number'), maxlength = 40)
type = models.CharField(_('Type'), maxlength=20, choices = TYPES_CHOICES)
comment = models.TextField(_('Comment'), blank = True)
|
More like this
- Address model by harobed 4 years, 6 months ago
- "Ukrainian telephone number" model and form fields. by I159 1 year, 7 months ago
- Combine ProfileForm an UserForm in one. by sarg 2 years, 11 months ago
- iPhoneMiddleware by henriklied 4 years, 7 months ago
- Detect iPhone & Switch Template via render_to_response by bryanhelmig 3 years ago
Comments