From 35e8dc4ce942132506422501f4d587f1188f6036 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Thu, 9 Jul 2020 21:55:05 +0200 Subject: [PATCH] removed keyword created by as it was never populated --- .../0074_remove_keyword_created_by.py | 17 +++++++++++++++++ cookbook/models.py | 1 - 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 cookbook/migrations/0074_remove_keyword_created_by.py diff --git a/cookbook/migrations/0074_remove_keyword_created_by.py b/cookbook/migrations/0074_remove_keyword_created_by.py new file mode 100644 index 000000000..c743add39 --- /dev/null +++ b/cookbook/migrations/0074_remove_keyword_created_by.py @@ -0,0 +1,17 @@ +# Generated by Django 3.0.7 on 2020-07-09 19:54 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('cookbook', '0073_auto_20200708_2311'), + ] + + operations = [ + migrations.RemoveField( + model_name='keyword', + name='created_by', + ), + ] diff --git a/cookbook/models.py b/cookbook/models.py index 2cd4cdbff..a6a2d8629 100644 --- a/cookbook/models.py +++ b/cookbook/models.py @@ -115,7 +115,6 @@ class Keyword(models.Model): name = models.CharField(max_length=64, unique=True) icon = models.CharField(max_length=16, blank=True, null=True) description = models.TextField(default="", blank=True) - created_by = models.IntegerField(default=0) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True)