Major overhaul to subject model and serializers

This commit is contained in:
Keannu Christian Bernasol 2023-07-26 23:32:03 +08:00
parent 0eff07a1ae
commit 0fd790505e
26 changed files with 199 additions and 173 deletions

View file

@ -40,6 +40,9 @@ SPECTACULAR_SETTINGS = {
'DESCRIPTION': 'A Capstone project',
'VERSION': '1.0.0',
'SERVE_INCLUDE_SCHEMA': False,
'SWAGGER_UI_DIST': 'SIDECAR',
'SWAGGER_UI_FAVICON_HREF': 'SIDECAR',
'REDOC_DIST': 'SIDECAR',
# OTHER SETTINGS
}
@ -87,6 +90,7 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'drf_spectacular',
'drf_spectacular_sidecar',
'django.contrib.gis',
'rest_framework',
'rest_framework_simplejwt',