Skip to content

Commit

Permalink
Support staff changing datacentre location
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchrisadams committed Jun 15, 2023
1 parent 3707356 commit b895cc0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/accounts/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
DatacenterClassification,
DatacenterCooling,
DatacenterNote,
DataCenterLocation,
HostingCommunication,
HostingproviderCertificate,
Hostingprovider,
Expand Down Expand Up @@ -229,6 +230,11 @@ class DataCenterSupportingDocumentInline(admin.StackedInline):
model = DatacenterSupportingDocument


class DataCenterLocationInline(admin.StackedInline):
extra = 0
model = DataCenterLocation


@admin.register(Service, site=greenweb_admin)
class ServiceAdmin(admin.ModelAdmin):
model = Service
Expand Down Expand Up @@ -885,6 +891,7 @@ class DatacenterAdmin(admin.ModelAdmin):
# DatacenterCoolingInline,
DataCenterSupportingDocumentInline,
DatacenterNoteInline,
DataCenterLocationInline,
]
search_fields = ("name",)

Expand Down

0 comments on commit b895cc0

Please sign in to comment.