From 68cf0f8816b97c0e12f4ac3df33b66d3d5ae34be Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Fri, 14 Aug 2015 16:53:37 -0500 Subject: [PATCH] facts: don't require nickmask in admin form --- .../migrations/0005_auto_20150814_1653.py | 19 +++++++++++++++++++ dr_botzo/facts/models.py | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 dr_botzo/facts/migrations/0005_auto_20150814_1653.py diff --git a/dr_botzo/facts/migrations/0005_auto_20150814_1653.py b/dr_botzo/facts/migrations/0005_auto_20150814_1653.py new file mode 100644 index 0000000..81b5748 --- /dev/null +++ b/dr_botzo/facts/migrations/0005_auto_20150814_1653.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('facts', '0004_fact_time'), + ] + + operations = [ + migrations.AlterField( + model_name='fact', + name='nickmask', + field=models.CharField(default='', max_length=200, blank=True), + ), + ] diff --git a/dr_botzo/facts/models.py b/dr_botzo/facts/models.py index 672c1bf..53420ad 100644 --- a/dr_botzo/facts/models.py +++ b/dr_botzo/facts/models.py @@ -55,7 +55,7 @@ class Fact(models.Model): fact = models.TextField() category = models.ForeignKey(FactCategory) - nickmask = models.CharField(max_length=200, default='') + nickmask = models.CharField(max_length=200, default='', blank=True) time = models.DateTimeField(auto_now_add=True) objects = FactManager()