From 03a545d850b947ad2a763a630ffcfa73a83736fb Mon Sep 17 00:00:00 2001 From: ndu Date: Mon, 28 Oct 2024 06:03:54 +0100 Subject: [PATCH] chore(fix): rm padding from models --- .../0011_remove_article_sponsor_padding.py | 17 +++++++++++++++++ server/apps/research/models/article.py | 1 - 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 server/apps/research/migrations/0011_remove_article_sponsor_padding.py diff --git a/server/apps/research/migrations/0011_remove_article_sponsor_padding.py b/server/apps/research/migrations/0011_remove_article_sponsor_padding.py new file mode 100644 index 0000000..5326c37 --- /dev/null +++ b/server/apps/research/migrations/0011_remove_article_sponsor_padding.py @@ -0,0 +1,17 @@ +# Generated by Django 5.0.8 on 2024-10-28 05:02 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('research', '0010_article_sponsor_padding_alter_article_sponsor_color_and_more'), + ] + + operations = [ + migrations.RemoveField( + model_name='article', + name='sponsor_padding', + ), + ] diff --git a/server/apps/research/models/article.py b/server/apps/research/models/article.py index efb6ca0..397fc9e 100644 --- a/server/apps/research/models/article.py +++ b/server/apps/research/models/article.py @@ -37,7 +37,6 @@ class Article(BaseModel): is_sponsored = models.BooleanField(default=False) sponsor_color = models.CharField(max_length=7, default="#FF0420") sponsor_text_color = models.CharField(max_length=7, default="#000000") - sponsor_padding = models.CharField(max_length=20, default="px-4 py-6") objects = models.Manager() post_objects = ArticleObjects()