-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ add color and donation banner to category
- Loading branch information
Showing
5 changed files
with
120 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 97 additions & 0 deletions
97
...de/fds_blog/migrations/0019_remove_article_content_placeholder_category_color_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
# Generated by Django 4.2.4 on 2024-05-13 17:49 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("djangocms_alias", "0004_alter_aliascontent_language"), | ||
("fds_blog", "0018_remove_slider_template"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="article", | ||
name="content_placeholder", | ||
), | ||
migrations.AddField( | ||
model_name="category", | ||
name="color", | ||
field=models.CharField( | ||
blank=True, | ||
choices=[ | ||
("", "None"), | ||
("callout", "Callout"), | ||
("highlight", "Highlight"), | ||
("body", "Default Body"), | ||
("body-secondary", "Body Secondary"), | ||
("body-tertiary", "Body Tertiary"), | ||
("dark-subtle", "Dark Subtle"), | ||
("light-subtle", "Light Subtle"), | ||
("primary", "Primary"), | ||
("primary-subtle", "Primary Subtle"), | ||
("secondary", "Secondary"), | ||
("secondary-subtle", "Secondary Subtle"), | ||
("info", "Info"), | ||
("info-subtle", "Info Subtle"), | ||
("success", "Success"), | ||
("success-subtle", "Success Subtle"), | ||
("warning", "Warning"), | ||
("warning-subtle", "Warning Subtle"), | ||
("danger", "Danger"), | ||
("danger-subtle", "Danger Subtle"), | ||
("purple", "Purple"), | ||
("pink", "Pink"), | ||
("yellow", "Yellow"), | ||
("cyan", "Cyan"), | ||
("gray", "Gray"), | ||
("gray-dark", "Gray Dark"), | ||
("white", "White"), | ||
("light", "Light"), | ||
("dark", "Dark"), | ||
("transparent", "Transparent"), | ||
("gray-100", "Gray 100"), | ||
("gray-200", "Gray 200"), | ||
("gray-300", "Gray 300"), | ||
("gray-400", "Gray 400"), | ||
("gray-500", "Gray 500"), | ||
("gray-600", "Gray 600"), | ||
("gray-700", "Gray 700"), | ||
("gray-800", "Gray 800"), | ||
("gray-900", "Gray 900"), | ||
("blue-10", "Blue 10"), | ||
("blue-20", "Blue 20"), | ||
("blue-30", "Blue 30"), | ||
("blue-100", "Blue 100"), | ||
("blue-200", "Blue 200"), | ||
("blue-300", "Blue 300"), | ||
("blue-400", "Blue 400"), | ||
("blue-500", "Blue 500"), | ||
("blue-600", "Blue 600"), | ||
("blue-700", "Blue 700"), | ||
("blue-800", "Blue 800"), | ||
("yellow-100", "Yellow 100"), | ||
("yellow-200", "Yellow 200"), | ||
("yellow-300", "Yellow 300"), | ||
], | ||
default="", | ||
help_text="Will be visible as the breadcrumb background.", | ||
max_length=50, | ||
verbose_name="Category color", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="category", | ||
name="donation_banner", | ||
field=models.ForeignKey( | ||
default=None, | ||
help_text="Inserted after a couple of paragraphs on the article page.", | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name="donation_banner", | ||
to="djangocms_alias.alias", | ||
verbose_name="Donation banner", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.