facts: boolean to display facts items in view

carried over from the choices functionality that always does this, make
this an option for the FactCategory for when we have views

bss/dr.botzo#15
This commit is contained in:
Brian S. Stephan 2017-02-11 09:21:18 -06:00
parent 36e2de5dfd
commit 4bf0c7e260
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-11 15:00
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('facts', '0005_auto_20150814_1653'),
]
operations = [
migrations.AddField(
model_name='factcategory',
name='show_all_entries',
field=models.BooleanField(default=False),
),
]

View File

@ -11,6 +11,7 @@ class FactCategory(models.Model):
"""Define categories for facts."""
name = models.CharField(max_length=200, unique=True)
show_all_entries = models.BooleanField(default=False)
show_source = models.BooleanField(default=False)
class Meta: