From ef4e1209a98a8084a16db15476e36e4865b22d24 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Fri, 26 Jan 2024 21:06:00 +0100 Subject: [PATCH] Add basic admin page --- sncfgtfs/admin.py | 48 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/sncfgtfs/admin.py b/sncfgtfs/admin.py index 8c38f3f..dbdc2d9 100644 --- a/sncfgtfs/admin.py +++ b/sncfgtfs/admin.py @@ -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