From 3f3e142aa0cc9043fb1ee0420beeca4223df1199 Mon Sep 17 00:00:00 2001 From: Fabian Faessler Date: Sun, 29 Sep 2013 16:38:30 +0200 Subject: [PATCH] added optional attribut to user field in domain model --- nsupdate/main/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsupdate/main/models.py b/nsupdate/main/models.py index a0f937f..ed6ace4 100644 --- a/nsupdate/main/models.py +++ b/nsupdate/main/models.py @@ -33,7 +33,7 @@ class Domain(models.Model): last_update = models.DateTimeField(auto_now=True) created = models.DateTimeField(auto_now_add=True) - created_by = models.ForeignKey(User) + created_by = models.ForeignKey(User, blank=True, null=True) def __unicode__(self): return u"%s" % (self.domain, )