models.py 344 Bytes
Newer Older
Aymeric Barantal's avatar
Aymeric Barantal committed
1
2
3
4
5
6
7
8
from django.db import models
from django.contrib.auth.models import User


class Organization(models.Model):
    id = models.AutoField(primary_key=True)
    name = models.CharField(max_length=64)
    sip_key = models.CharField(max_length=255)
9
10
11
12
    users = models.ForeignKey(User, blank=True)

    def __unicode__(self):
        return self.name