make reservations visible and hide the enacted fields
diff --git a/planetstack/core/admin.py b/planetstack/core/admin.py
index 277f933..60a589c 100644
--- a/planetstack/core/admin.py
+++ b/planetstack/core/admin.py
@@ -557,6 +557,7 @@
inlines = [ServiceResourceInline]
class ReservedResourceInline(admin.TabularInline):
+ exclude = ['enacted']
model = ReservedResource
extra = 0
@@ -625,6 +626,7 @@
return False
class ReservationAdmin(admin.ModelAdmin):
+ exclude = ['enacted']
list_display = ('startTime', 'duration')
inlines = [ReservedResourceInline]
form = ReservationAddForm
@@ -703,6 +705,7 @@
admin.site.register(Slice, SliceAdmin)
admin.site.register(Project, ProjectAdmin)
admin.site.register(ServiceClass, ServiceClassAdmin)
+admin.site.register(Reservation, ReservationAdmin)
if showAll:
admin.site.register(Tag, TagAdmin)
@@ -711,6 +714,5 @@
admin.site.register(SitePrivilege, SitePrivilegeAdmin)
admin.site.register(Role, RoleAdmin)
admin.site.register(Sliver, SliverAdmin)
- admin.site.register(Reservation, ReservationAdmin)
admin.site.register(Image, ImageAdmin)