Skip to content

Commit

Permalink
allow url field to be blank
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemaddem committed Aug 3, 2021
1 parent 2ea3646 commit 6d7a4a3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions pages/migrations/0009_auto_20210803_1858.py
@@ -0,0 +1,18 @@
# Generated by Django 2.2.12 on 2021-08-03 22:58

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('pages', '0008_auto_20210803_1845'),
]

operations = [
migrations.AlterField(
model_name='staticpage',
name='url',
field=models.URLField(blank=True),
),
]
2 changes: 1 addition & 1 deletion pages/models.py
Expand Up @@ -40,7 +40,7 @@ class StaticPage(models.Model):
page_name = models.CharField(max_length=50, blank=False, null=False)
content = RichTextField(default='')
redirects = models.BooleanField(default=False)
url = models.URLField(max_length=200, default='')
url = models.URLField(max_length=200, blank=True)


class FrontPageSlide(models.Model):
Expand Down

0 comments on commit 6d7a4a3

Please sign in to comment.