tag type support
[plstackapi.git] / planetstack / core / admin.py
index 277f933..45b5903 100644 (file)
@@ -396,6 +396,9 @@ class SliverForm(forms.ModelForm):
 class ProjectAdmin(admin.ModelAdmin):
     exclude = ['enacted']
 
+class TagTypeAdmin(admin.ModelAdmin):
+    exclude = ['enacted']
+
 class TagAdmin(admin.ModelAdmin):
     exclude = ['enacted']
 
@@ -549,14 +552,17 @@ class UserAdmin(UserAdmin):
         return super(UserAdmin, self).formfield_for_foreignkey(db_field, request, **kwargs)
 
 class ServiceResourceInline(admin.TabularInline):
+    exclude = ['enacted']
     model = ServiceResource
     extra = 0
 
 class ServiceClassAdmin(admin.ModelAdmin):
+    exclude = ['enacted']
     list_display = ('name', 'commitment', 'membershipFee')
     inlines = [ServiceResourceInline]
 
 class ReservedResourceInline(admin.TabularInline):
+    exclude = ['enacted']
     model = ReservedResource
     extra = 0
 
@@ -625,6 +631,7 @@ class ReservationAddRefreshForm(ReservationAddForm):
         return False
 
 class ReservationAdmin(admin.ModelAdmin):
+    exclude = ['enacted']
     list_display = ('startTime', 'duration')
     inlines = [ReservedResourceInline]
     form = ReservationAddForm
@@ -703,6 +710,8 @@ admin.site.register(Site, SiteAdmin)
 admin.site.register(Slice, SliceAdmin)
 admin.site.register(Project, ProjectAdmin)
 admin.site.register(ServiceClass, ServiceClassAdmin)
+admin.site.register(Reservation, ReservationAdmin)
+admin.site.register(TagType, TagTypeAdmin)
 
 if showAll:
     admin.site.register(Tag, TagAdmin)
@@ -711,6 +720,5 @@ if showAll:
     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)