Commit 42992788 authored by Florent Chehab's avatar Florent Chehab
Browse files

Backend completely reorganized to limit cyclic imports

parent c776e24f
Pipeline #27073 passed with stages
in 2 minutes and 27 seconds
from django.conf import settings
PHOTOS_TAG_GONFIG = {
PHOTOS_TAG_CONFIG = {
"type": "array",
"required": True,
"content": {
......
......@@ -38,13 +38,13 @@
- model: Country
viewset: CountryViewSet
import_location: location
import_location: country
api_end_point: countries
viewset_permission: IsStaffOrReadOnly
- model: City
viewset: CityViewSet
import_location: location
import_location: city
api_end_point: cities
moderation_level: 2
......@@ -56,7 +56,7 @@
- model: Campus
viewset: CampusViewSet
import_location: university
import_location: campus
api_end_point: campuses
versionned: true
moderation_level: 2
......@@ -80,7 +80,7 @@
- model: Currency
viewset: CurrencyViewSet
import_location: location
import_location: currency
api_end_point: currencies
moderation_level: 2
viewset_permission: IsStaffOrReadOnly
......@@ -116,19 +116,19 @@
- model: CountryTaggedItem
viewset: CountryTaggedItemViewSet
import_location: location
import_location: country
api_end_point: countriesTaggedItems
versionned: true
- model: CountryScholarship
viewset: CountryScholarshipViewSet
import_location: location
import_location: country
api_end_point: countriesScholarships
versionned: true
- model: CountryDri
viewset: CountryDriViewSet
import_location: location
import_location: country
api_end_point: countriesDri
viewset_permission: IsDriOrReadOnly
versionned: true
......@@ -137,7 +137,7 @@
- model: CityTaggedItem
viewset: CityTaggedItemViewSet
import_location: location
import_location: city
api_end_point: citiesTaggedItems
versionned: true
......@@ -185,13 +185,13 @@
- model: CampusTaggedItem
viewset: CampusTaggedItemViewSet
import_location: university
import_location: campus
api_end_point: campusesTaggedItems
versionned: true
- model: null
viewset: MainCampusViewSet
import_location: university
import_location: campus
api_end_point: mainCampuses
read_only: true
......
......@@ -34,6 +34,7 @@ INSTALLED_APPS = [
'rest_framework.authtoken',
'backend',
'frontend',
'django_extensions',
'debug_toolbar',
]
......
......@@ -20,3 +20,4 @@ flake8
django-debug-toolbar==1.9.1
pandas
pyyaml
django-extensions==2.1.2
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment