Skip to content

Commit

Permalink
feat: add simple facility and facility attachment admin
Browse files Browse the repository at this point in the history
  • Loading branch information
ngurenyaga committed Jul 12, 2021
1 parent fcfd6f9 commit 0e534b7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ steps:
'--platform', 'managed',
'--allow-unauthenticated',
'--add-cloudsql-instances', '${_CLOUDSQL_INSTANCE_CONNECTION_NAME}',
'--update-env-vars', 'GOOGLE_CLOUD_PROJECT=$PROJECT_ID,SETTINGS_NAME=mle_django_settings'
'--set-env-vars', 'GOOGLE_CLOUD_PROJECT=$PROJECT_ID,SETTINGS_NAME=mle_django_settings'
]

images:
Expand Down
4 changes: 1 addition & 3 deletions config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env("DJANGO_SECRET_KEY")
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED_HOSTS = env.list(
"DJANGO_ALLOWED_HOSTS", default=["savannahghi.org,mle.savannahghi.org,run.app"]
)
ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS", default=[".savannahghi.org"])

# DATABASES
# ------------------------------------------------------------------------------
Expand Down
15 changes: 15 additions & 0 deletions pepfar_mle/common/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from django.contrib import admin

from .models import Facility, FacilityAttachment


class FacilityAdmin(admin.ModelAdmin):
pass


class FacilityAttachmentAdmin(admin.ModelAdmin):
pass


admin.site.register(Facility, FacilityAdmin)
admin.site.register(FacilityAttachment, FacilityAttachmentAdmin)

0 comments on commit 0e534b7

Please sign in to comment.