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:
parent
36e2de5dfd
commit
4bf0c7e260
20
facts/migrations/0006_factcategory_show_all_entries.py
Normal file
20
facts/migrations/0006_factcategory_show_all_entries.py
Normal 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),
|
||||
),
|
||||
]
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user