Add basic admin page

This commit is contained in:
Emmy D'Anello 2024-01-26 21:06:00 +01:00
parent 2d3eea114a
commit ef4e1209a9
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 47 additions and 1 deletions

View File

@ -1,3 +1,49 @@
from django.contrib import admin
# Register your models here.
from sncfgtfs.models import Agency, Stop, Route, Trip, StopTime, Calendar, CalendarDate, \
Transfer, FeedInfo
@admin.register(Agency)
class AgencyAdmin(admin.ModelAdmin):
pass
@admin.register(Stop)
class StopAdmin(admin.ModelAdmin):
pass
@admin.register(Route)
class RouteAdmin(admin.ModelAdmin):
pass
@admin.register(Trip)
class TripAdmin(admin.ModelAdmin):
pass
@admin.register(StopTime)
class StopTimeAdmin(admin.ModelAdmin):
pass
@admin.register(Calendar)
class CalendarAdmin(admin.ModelAdmin):
pass
@admin.register(CalendarDate)
class CalendarDateAdmin(admin.ModelAdmin):
pass
@admin.register(Transfer)
class TransferAdmin(admin.ModelAdmin):
pass
@admin.register(FeedInfo)
class FeedInfoAdmin(admin.ModelAdmin):
pass