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 from django.conf import settings
PHOTOS_TAG_GONFIG = { PHOTOS_TAG_CONFIG = {
"type": "array", "type": "array",
"required": True, "required": True,
"content": { "content": {
......
...@@ -38,13 +38,13 @@ ...@@ -38,13 +38,13 @@
- model: Country - model: Country
viewset: CountryViewSet viewset: CountryViewSet
import_location: location import_location: country
api_end_point: countries api_end_point: countries
viewset_permission: IsStaffOrReadOnly viewset_permission: IsStaffOrReadOnly
- model: City - model: City
viewset: CityViewSet viewset: CityViewSet
import_location: location import_location: city
api_end_point: cities api_end_point: cities
moderation_level: 2 moderation_level: 2
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
- model: Campus - model: Campus
viewset: CampusViewSet viewset: CampusViewSet
import_location: university import_location: campus
api_end_point: campuses api_end_point: campuses
versionned: true versionned: true
moderation_level: 2 moderation_level: 2
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
- model: Currency - model: Currency
viewset: CurrencyViewSet viewset: CurrencyViewSet
import_location: location import_location: currency
api_end_point: currencies api_end_point: currencies
moderation_level: 2 moderation_level: 2
viewset_permission: IsStaffOrReadOnly viewset_permission: IsStaffOrReadOnly
...@@ -116,19 +116,19 @@ ...@@ -116,19 +116,19 @@
- model: CountryTaggedItem - model: CountryTaggedItem
viewset: CountryTaggedItemViewSet viewset: CountryTaggedItemViewSet
import_location: location import_location: country
api_end_point: countriesTaggedItems api_end_point: countriesTaggedItems
versionned: true versionned: true
- model: CountryScholarship - model: CountryScholarship
viewset: CountryScholarshipViewSet viewset: CountryScholarshipViewSet
import_location: location import_location: country
api_end_point: countriesScholarships api_end_point: countriesScholarships
versionned: true versionned: true
- model: CountryDri - model: CountryDri
viewset: CountryDriViewSet viewset: CountryDriViewSet
import_location: location import_location: country
api_end_point: countriesDri api_end_point: countriesDri
viewset_permission: IsDriOrReadOnly viewset_permission: IsDriOrReadOnly
versionned: true versionned: true
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
- model: CityTaggedItem - model: CityTaggedItem
viewset: CityTaggedItemViewSet viewset: CityTaggedItemViewSet
import_location: location import_location: city
api_end_point: citiesTaggedItems api_end_point: citiesTaggedItems
versionned: true versionned: true
...@@ -185,13 +185,13 @@ ...@@ -185,13 +185,13 @@
- model: CampusTaggedItem - model: CampusTaggedItem
viewset: CampusTaggedItemViewSet viewset: CampusTaggedItemViewSet
import_location: university import_location: campus
api_end_point: campusesTaggedItems api_end_point: campusesTaggedItems
versionned: true versionned: true
- model: null - model: null
viewset: MainCampusViewSet viewset: MainCampusViewSet
import_location: university import_location: campus
api_end_point: mainCampuses api_end_point: mainCampuses
read_only: true read_only: true
......
...@@ -34,6 +34,7 @@ INSTALLED_APPS = [ ...@@ -34,6 +34,7 @@ INSTALLED_APPS = [
'rest_framework.authtoken', 'rest_framework.authtoken',
'backend', 'backend',
'frontend', 'frontend',
'django_extensions',
'debug_toolbar', 'debug_toolbar',
] ]
......
...@@ -19,4 +19,5 @@ pytest-xdist==1.23.0 ...@@ -19,4 +19,5 @@ pytest-xdist==1.23.0
flake8 flake8
django-debug-toolbar==1.9.1 django-debug-toolbar==1.9.1
pandas pandas
pyyaml pyyaml
\ No newline at end of file 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