Merge pull request #63 from HackSoftware/do-not-use-blank-null-true

Do not use both `blank=True` & `null=True` when unnecessary
This commit is contained in:
Radoslav Georgiev 2020-10-18 19:16:04 +03:00 committed by GitHub
commit 842e7f97a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,10 +110,10 @@ class Course(models.Model):
slug_url = models.SlugField(unique=True)
repository = models.URLField(blank=True)
video_channel = models.URLField(blank=True, null=True)
facebook_group = models.URLField(blank=True, null=True)
video_channel = models.URLField(blank=True)
facebook_group = models.URLField(blank=True)
logo = models.ImageField(blank=True, null=True)
logo = models.ImageField(blank=True)
public = models.BooleanField(default=True)