- Created ArticlePageTag model for tagging articles. - Added ClusterTaggableManager to ArticlePage for tag management. - Renamed 'recommended' field to 'trending' in ArticlePage. - Updated migrations to reflect changes in models. - Implemented methods to retrieve trending articles and related articles based on tags. - Modified templates to display tags and related articles on article pages. - Refactored category and homepage templates to accommodate new sections and layouts. - Removed deprecated templates and added new includes for better modularity. - Updated header to include links for latest and trending articles. - Added environment variable support for configurable block and page sizes. - Updated requirements to include python-dotenv for environment variable management.
21 lines
483 B
Python
21 lines
483 B
Python
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("home", "0009_articlepagetag_articlepage_tags"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterField(
|
|
model_name="articlepage",
|
|
name="recommended",
|
|
field=models.BooleanField(
|
|
default=False,
|
|
help_text="在熱門區塊顯示",
|
|
verbose_name="Trending",
|
|
),
|
|
),
|
|
]
|