Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #291 from open-contracting/insightpage-hot-fix
Browse files Browse the repository at this point in the history
insights page hot-fix
  • Loading branch information
sonikabaniya committed May 3, 2021
2 parents 9cf960b + a3f963d commit dec219a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions content/migrations/0050_auto_20210503_1023.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.1.7 on 2021-05-03 10:23

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('content', '0049_auto_20210503_0735'),
]

operations = [
migrations.AlterField(
model_name='insightspage',
name='featured',
field=models.CharField(choices=[('true', 'Yes'), ('false', 'No')], default=False, max_length=15, verbose_name='Featured ?'),
),
]
2 changes: 1 addition & 1 deletion content/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class InsightsPage(Page):
max_length=20,
choices=contents_choice,
)
BOOL_CHOICES = ((True, "Yes"), (False, "No"))
BOOL_CHOICES = (("true", "Yes"), ("false", "No"))

featured = models.CharField(
"Featured ?", choices=BOOL_CHOICES, blank=False, null=False, default=False, max_length=15
Expand Down

0 comments on commit dec219a

Please sign in to comment.