added null constraint to Post::title model
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user