mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 13:11:08 -05:00
fixed a bunch of things, hopefully didn't break things
This commit is contained in:
@@ -82,7 +82,6 @@ class Ride(HistoricalModel):
|
||||
updated_at = models.DateTimeField(auto_now=True)
|
||||
photos = GenericRelation('media.Photo')
|
||||
reviews = GenericRelation('reviews.Review')
|
||||
history: HistoricalRecords = HistoricalRecords() # type: ignore
|
||||
|
||||
class Meta:
|
||||
ordering = ['name']
|
||||
@@ -120,7 +119,7 @@ class Ride(HistoricalModel):
|
||||
raise cls.DoesNotExist("No ride found with this slug") from inner_e
|
||||
raise cls.DoesNotExist("No ride found with this slug") from e
|
||||
|
||||
class RollerCoasterStats(models.Model):
|
||||
class RollerCoasterStats(HistoricalModel):
|
||||
LAUNCH_CHOICES = [
|
||||
('CHAIN', 'Chain Lift'),
|
||||
('CABLE', 'Cable Launch'),
|
||||
@@ -212,7 +211,6 @@ class RollerCoasterStats(models.Model):
|
||||
trains_count = models.PositiveIntegerField(null=True, blank=True)
|
||||
cars_per_train = models.PositiveIntegerField(null=True, blank=True)
|
||||
seats_per_car = models.PositiveIntegerField(null=True, blank=True)
|
||||
history: HistoricalRecords = HistoricalRecords() # type: ignore
|
||||
|
||||
class Meta:
|
||||
verbose_name = 'Roller Coaster Statistics'
|
||||
|
||||
Reference in New Issue
Block a user