mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-23 11:31:09 -05:00
yay
This commit is contained in:
Binary file not shown.
BIN
companies/__pycache__/__init__.cpython-312.pyc
Normal file
BIN
companies/__pycache__/__init__.cpython-312.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
companies/__pycache__/admin.cpython-312.pyc
Normal file
BIN
companies/__pycache__/admin.cpython-312.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
companies/__pycache__/apps.cpython-312.pyc
Normal file
BIN
companies/__pycache__/apps.cpython-312.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
companies/__pycache__/models.cpython-312.pyc
Normal file
BIN
companies/__pycache__/models.cpython-312.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
companies/__pycache__/signals.cpython-312.pyc
Normal file
BIN
companies/__pycache__/signals.cpython-312.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
companies/__pycache__/urls.cpython-312.pyc
Normal file
BIN
companies/__pycache__/urls.cpython-312.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
companies/__pycache__/views.cpython-312.pyc
Normal file
BIN
companies/__pycache__/views.cpython-312.pyc
Normal file
Binary file not shown.
@@ -4,14 +4,14 @@ from .models import Company, Manufacturer
|
||||
|
||||
@admin.register(Company)
|
||||
class CompanyAdmin(SimpleHistoryAdmin):
|
||||
list_display = ('name', 'headquarters', 'website', 'created_at')
|
||||
list_display = ('id', 'name', 'headquarters', 'website', 'created_at')
|
||||
search_fields = ('name', 'headquarters', 'description')
|
||||
prepopulated_fields = {'slug': ('name',)}
|
||||
readonly_fields = ('created_at', 'updated_at')
|
||||
|
||||
@admin.register(Manufacturer)
|
||||
class ManufacturerAdmin(SimpleHistoryAdmin):
|
||||
list_display = ('name', 'headquarters', 'website', 'created_at')
|
||||
list_display = ('id', 'name', 'headquarters', 'website', 'created_at')
|
||||
search_fields = ('name', 'headquarters', 'description')
|
||||
prepopulated_fields = {'slug': ('name',)}
|
||||
readonly_fields = ('created_at', 'updated_at')
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Generated by Django 5.1.2 on 2024-10-28 20:25
|
||||
# Generated manually
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
@@ -31,22 +31,22 @@ class Migration(migrations.Migration):
|
||||
field=models.PositiveIntegerField(default=0),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='historicalmanufacturer',
|
||||
model_name='manufacturer',
|
||||
name='total_rides',
|
||||
field=models.PositiveIntegerField(default=0),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='historicalmanufacturer',
|
||||
model_name='manufacturer',
|
||||
name='total_roller_coasters',
|
||||
field=models.PositiveIntegerField(default=0),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='manufacturer',
|
||||
model_name='historicalmanufacturer',
|
||||
name='total_rides',
|
||||
field=models.PositiveIntegerField(default=0),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='manufacturer',
|
||||
model_name='historicalmanufacturer',
|
||||
name='total_roller_coasters',
|
||||
field=models.PositiveIntegerField(default=0),
|
||||
),
|
||||
13
companies/migrations/0003_remove_total_parks.py
Normal file
13
companies/migrations/0003_remove_total_parks.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from django.db import migrations
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
('companies', '0002_stats_fields'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='company',
|
||||
name='total_parks',
|
||||
),
|
||||
]
|
||||
14
companies/migrations/0004_add_total_parks.py
Normal file
14
companies/migrations/0004_add_total_parks.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
('companies', '0003_remove_total_parks'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='company',
|
||||
name='total_parks',
|
||||
field=models.PositiveIntegerField(default=0),
|
||||
),
|
||||
]
|
||||
Binary file not shown.
BIN
companies/migrations/__pycache__/0001_initial.cpython-312.pyc
Normal file
BIN
companies/migrations/__pycache__/0001_initial.cpython-312.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
companies/migrations/__pycache__/__init__.cpython-312.pyc
Normal file
BIN
companies/migrations/__pycache__/__init__.cpython-312.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user