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

  1. "Ukrainian telephone number" model and form fields. by I159 2 years, 6 months ago
  2. BRPhoneNumberWidget by semente 2 years, 7 months ago
  3. Email and phone templatetag obfuscator by sunn 4 years, 8 months ago
  4. notify admin what fields have changed in form submission by pjv 3 years, 4 months ago
  5. A RegexpField that clean the regex match using the desired format by nasp 3 years, 7 months ago

Comments

(Forgotten your password?)