Première version : mise en route du suivi.
[auf_montreal_asterisk_users.git] / auf_asterisk_users / models.py
1 from django.db import models
2
3 # Create your models here.
4
5 class Comptes(models.Model):
6 exten = models.CharField(max_length=8)
7 categorie = models.CharField(max_length=64)
8 fullname = models.CharField(max_length=256)
9 cidname = models.CharField(max_length=256)
10 email = models.CharField(max_length=256)
11 secret = models.CharField(max_length=8)
12 voicemailcode = models.CharField(max_length=8)
13 pavillon = models.CharField(max_length=4, default=543)
14 bureau = models.CharField(max_length=8)
15
16 # def __unicode__(self):
17 # return self.fullname()
18
19 def gestion_comptes(self):
20 return self.exten()
21 return self.categorie()
22 return self.fullname()
23