-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#100 added models for categories and tags + faceted navigation + test…
…s + new setting + docs
- Loading branch information
Showing
13 changed files
with
576 additions
and
101 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
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
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,36 @@ | ||
# Generated by Django 4.2.4 on 2023-08-15 11:58 | ||
|
||
from django.db import migrations, models | ||
import modelcluster.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("cast", "0048_added_visible_date_index_for_wagtail_api"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="PostCategory", | ||
fields=[ | ||
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")), | ||
("name", models.CharField(help_text="The name for this category", max_length=255, unique=True)), | ||
( | ||
"slug", | ||
models.SlugField( | ||
help_text="A slug to identify posts by this category", unique=True, verbose_name="slug" | ||
), | ||
), | ||
], | ||
options={ | ||
"verbose_name": "Post Category", | ||
"verbose_name_plural": "Post Categories", | ||
"ordering": ["name"], | ||
}, | ||
), | ||
migrations.AddField( | ||
model_name="post", | ||
name="categories", | ||
field=modelcluster.fields.ParentalManyToManyField(blank=True, to="cast.postcategory"), | ||
), | ||
] |
Oops, something went wrong.