mirror of
https://github.com/daniviga/django-ram.git
synced 2026-02-28 05:32:28 +01:00
Code refactoring to simplify template data contexts (#55)
* Fix a search filter when no catalogs are returned * Code refactoring to simplify templates * Remove duplicated code * Remove dead code * More improvements, clean up and add featured items in homepage * Fix a type and better page navigation
This commit is contained in:
21
ram/roster/migrations/0039_rollingstock_featured.py
Normal file
21
ram/roster/migrations/0039_rollingstock_featured.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# Generated by Django 6.0 on 2025-12-24 13:39
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("roster", "0038_alter_rollingstock_rolling_class"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="rollingstock",
|
||||
name="featured",
|
||||
field=models.BooleanField(
|
||||
default=False,
|
||||
help_text="Featured rolling stock will appear on the homepage",
|
||||
),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user