Skip to content

Commit

Permalink
Remove warning from nullable manytomany field
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodiegoss committed Jun 22, 2024
1 parent b44ddec commit 9e805e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Post(models.Model):
body = models.TextField()
created = models.DateTimeField(editable=True)
updated = models.DateTimeField(auto_now=True, editable=True)
categories = models.ManyToManyField(Category, related_name='posts', null=True, blank=True)
categories = models.ManyToManyField(Category, related_name='posts', blank=True)

def __str__(self):
return self.title
Expand Down

0 comments on commit 9e805e4

Please sign in to comment.