version bumps and migration to django 2.2

This commit is contained in:
2019-06-21 10:05:40 -05:00
parent 0589939137
commit 2f98a64cdd
24 changed files with 127 additions and 117 deletions

View File

@@ -26,6 +26,6 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='fact',
name='category',
field=models.ForeignKey(to='facts.FactCategory'),
field=models.ForeignKey(to='facts.FactCategory', on_delete=models.CASCADE),
),
]

View File

@@ -52,7 +52,7 @@ class Fact(models.Model):
"""Define facts."""
fact = models.TextField()
category = models.ForeignKey(FactCategory)
category = models.ForeignKey(FactCategory, on_delete=models.CASCADE)
nickmask = models.CharField(max_length=200, default='', blank=True)
time = models.DateTimeField(auto_now_add=True)