group: make dns optional.
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 2 Feb 2013 11:52:11 +0000 (12:52 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 2 Feb 2013 11:52:11 +0000 (12:52 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
xnet/group/models.py

index f3d856b..f8e5cb4 100644 (file)
@@ -38,7 +38,7 @@ class Group(models.Model):
     kind = models.CharField(max_length=10, choices=KIND_CHOICES, verbose_name=_(u"kind"))
     domain = models.CharField(max_length=20, choices=DOMAIN_CHOICES, verbose_name=_(u"domain"))
 
-    dns = models.CharField(max_length=128, verbose_name=_(u"dns domain"), unique=True)
+    dns = models.CharField(max_length=128, verbose_name=_(u"dns domain"), blank=True, unique=True)
 
     class Meta:
         verbose_name = _(u"group")