Commit e20da055 authored by okhin's avatar okhin

Fixing the warning on ManyToManyFIelds being null

parent cf5e6c69
...@@ -7,7 +7,7 @@ class Organization(models.Model): ...@@ -7,7 +7,7 @@ class Organization(models.Model):
id = models.AutoField(primary_key=True) id = models.AutoField(primary_key=True)
name = models.CharField(max_length=64) name = models.CharField(max_length=64)
sip_key = models.CharField(max_length=255) sip_key = models.CharField(max_length=255)
users = models.ManyToManyField(User, null=True, blank=True, users = models.ManyToManyField(User, blank=True,
related_name='organizations') related_name='organizations')
def __str__(self): def __str__(self):
...@@ -30,7 +30,7 @@ class Group(models.Model): ...@@ -30,7 +30,7 @@ class Group(models.Model):
name = models.CharField(max_length=64) name = models.CharField(max_length=64)
type = models.ForeignKey(GroupType, blank=True, null=True) type = models.ForeignKey(GroupType, blank=True, null=True)
media = models.CharField(max_length=255, blank=True) media = models.CharField(max_length=255, blank=True)
contacts = models.ManyToManyField(Contact, null=True, blank=True, contacts = models.ManyToManyField(Contact, blank=True,
related_name='groups') related_name='groups')
def __str__(self): def __str__(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment