Commit ac5198a3 authored by Benjamin S Waters's avatar Benjamin S Waters
Browse files

added category to admin)

parent b6ddc9a2
from django.contrib import admin from django.contrib import admin
from .models import Facility, Schedule, OpenTime from .models import Facility, Schedule, OpenTime, Category
class OpenTimeAdmin(admin.ModelAdmin): class OpenTimeAdmin(admin.ModelAdmin):
pass pass
...@@ -7,7 +7,11 @@ class FacilityAdmin(admin.ModelAdmin): ...@@ -7,7 +7,11 @@ class FacilityAdmin(admin.ModelAdmin):
pass pass
class ScheduleAdmin(admin.ModelAdmin): class ScheduleAdmin(admin.ModelAdmin):
pass pass
class CategoryAdmin(admin.ModelAdmin):
pass
admin.site.register(Facility, FacilityAdmin) admin.site.register(Facility, FacilityAdmin)
admin.site.register(Schedule, ScheduleAdmin) admin.site.register(Schedule, ScheduleAdmin)
admin.site.register(OpenTime, OpenTimeAdmin) admin.site.register(OpenTime, OpenTimeAdmin)
admin.site.register(Category, CategoryAdmin)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment