This is standart phone model.
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
- Serializer factory with Django Rest Framework by julio 3 months, 3 weeks ago
- Image compression before saving the new model / work with JPG, PNG by Schleidens 4 months, 1 week ago
- Help text hyperlinks by sa2812 5 months, 1 week ago
- Stuff by NixonDash 7 months, 1 week ago
- Add custom fields to the built-in Group model by jmoppel 9 months, 2 weeks ago
Comments
Please login first before commenting.