added null constraint to Post::title model

This commit is contained in:
2016-02-05 16:48:16 +01:00
parent 853dba350e
commit 59b0e742d0
2 changed files with 4 additions and 4 deletions

View File

@@ -112,7 +112,7 @@ class RelUserMandant(models.Model):
return (str(self.user) + " -> " + str(self.mandant))
class Post(models.Model):
title = models.CharField(max_length=255)
title = models.CharField(max_length=255, null=False, blank=False)
slug = models.SlugField(unique=True, max_length=255)
content = models.TextField()
published = models.BooleanField(default=True)