mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 05:31:09 -05:00
- Created an empty migration file for the moderation app to enable migrations. - Documented the resolution of the seed command failure due to missing moderation tables. - Identified and fixed a VARCHAR(10) constraint violation in the User model during seed data generation. - Updated role assignment in the seed command to comply with the field length constraint.
35 lines
985 B
Python
35 lines
985 B
Python
"""
|
|
Rides app models with clean import interface.
|
|
|
|
This module provides a clean import interface for all rides-related models,
|
|
enabling imports like: from rides.models import Ride, Manufacturer
|
|
|
|
The Company model is aliased as Manufacturer to clarify its role as ride manufacturers,
|
|
while maintaining backward compatibility through the Company alias.
|
|
"""
|
|
|
|
from .rides import Ride, RideModel, RideModelVariant, RideModelPhoto, RideModelTechnicalSpec, RollerCoasterStats
|
|
from .company import Company
|
|
from .location import RideLocation
|
|
from .reviews import RideReview
|
|
from .rankings import RideRanking, RidePairComparison, RankingSnapshot
|
|
from .media import RidePhoto
|
|
|
|
__all__ = [
|
|
# Primary models
|
|
"Ride",
|
|
"RideModel",
|
|
"RideModelVariant",
|
|
"RideModelPhoto",
|
|
"RideModelTechnicalSpec",
|
|
"RollerCoasterStats",
|
|
"Company",
|
|
"RideLocation",
|
|
"RideReview",
|
|
"RidePhoto",
|
|
# Rankings
|
|
"RideRanking",
|
|
"RidePairComparison",
|
|
"RankingSnapshot",
|
|
]
|