added optional attribut to user field in domain model

This commit is contained in:
Fabian Faessler 2013-09-29 16:38:30 +02:00
parent 1abe15e9ab
commit 3f3e142aa0

View File

@ -33,7 +33,7 @@ class Domain(models.Model):
last_update = models.DateTimeField(auto_now=True) last_update = models.DateTimeField(auto_now=True)
created = models.DateTimeField(auto_now_add=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): def __unicode__(self):
return u"%s" % (self.domain, ) return u"%s" % (self.domain, )