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

removed deploy CI #42

Repo structure complete redesign
Fixes #38
parent 818af843
......@@ -2,7 +2,7 @@ from .myModel import MyModel
from .myModelSerializer import MyModelSerializer
from .myModelViewSet import MyModelViewSet
from django.db import models
from backend.utils import get_model_config, get_viewset_permissions
from backend_app.utils import get_model_config, get_viewset_permissions
class ForTestingModeration(MyModel):
......
from .myModelVersionned import MyModelVersionned, MyModelVersionnedSerializer, MyModelVersionnedViewSet
from django.db import models
import reversion
from backend.utils import get_model_config, get_viewset_permissions
from backend_app.utils import get_model_config, get_viewset_permissions
@reversion.register()
......
......@@ -5,9 +5,9 @@ from .pendingModeration import PendingModeration
from django.contrib.contenttypes.models import ContentType
from .myModel import MyModel
from .pendingModeration import PendingModerationSerializer
from backend.utils import get_user_level
from backend.permissions import is_moderation_required
from backend.custom import MySerializerWithJSON
from backend_app.utils import get_user_level
from backend_app.permissions import is_moderation_required
from backend_app.custom import MySerializerWithJSON
CLEANED_MY_MODEL_DATA = {
'moderated_by': None,
......
from backend.models.abstract.my_model import MyModel, MyModelSerializer, MyModelViewSet
from backend.signals.__squash_revision_by_user import new_revision_saved
from backend_app.models.abstract.my_model import MyModel, MyModelSerializer, MyModelViewSet
from backend_app.signals.__squash_revision_by_user import new_revision_saved
from rest_framework import serializers, mixins, viewsets
import reversion
from reversion.models import Version
from django.contrib.contenttypes.models import ContentType
from django.core.serializers.base import DeserializationError
from django.core import serializers as djangoSerializers
from backend.utils import get_viewset_permissions
from backend.custom import MySerializerWithJSON
from backend_app.utils import get_viewset_permissions
from backend_app.custom import MySerializerWithJSON
class MyModelVersionned(MyModel):
......
from .myModelSerializer import MyModelSerializer
from backend.permissions import DEFAULT_VIEWSET_PERMISSIONS
from backend.custom import DictModeViewSet
from backend_app.permissions import DEFAULT_VIEWSET_PERMISSIONS
from backend_app.custom import DictModeViewSet
class MyModelViewSet(DictModeViewSet):
......
......@@ -2,10 +2,10 @@ from django.db import models
from rest_framework import serializers, viewsets
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericForeignKey
from backend.fields import JSONField
from backend_app.fields import JSONField
from django.contrib.auth.models import User
from backend.utils import get_viewset_permissions, get_model_config
from backend.custom import MySerializerWithJSON
from backend_app.utils import get_viewset_permissions, get_model_config
from backend_app.custom import MySerializerWithJSON
class PendingModeration(models.Model):
......
from django.db import models
from backend.models.abstract.basic_module import BasicModule, BasicModuleSerializer, BasicModuleViewSet
from backend.models.currency import Currency
from backend_app.models.abstract.basic_module import BasicModule, BasicModuleSerializer, BasicModuleViewSet
from backend_app.models.currency import Currency
from rest_framework import serializers
from django.core.validators import MinValueValidator
......
from django.db import models
from backend.models.abstract.basic_module import BasicModule, BasicModuleSerializer, BasicModuleViewSet
from backend.models.tag import Tag
from backend.validators.tag import tagged_item_validation
from backend.fields import JSONField
from backend_app.models.abstract.basic_module import BasicModule, BasicModuleSerializer, BasicModuleViewSet
from backend_app.models.tag import Tag
from backend_app.validators.tag import tagged_item_validation
from backend_app.fields import JSONField
class TaggedItem(BasicModule):
......
from django.db import models
from backend.models.abstract.basic_module import BasicModule, BasicModuleSerializer, BasicModuleViewSet
from backend.models.city import City
from backend.models.university import University
from backend_app.models.abstract.basic_module import BasicModule, BasicModuleSerializer, BasicModuleViewSet
from backend_app.models.city import City
from backend_app.models.university import University
from django.core.validators import MinValueValidator, MaxValueValidator
from backend.utils import get_model_config, get_viewset_permissions
from backend_app.utils import get_model_config, get_viewset_permissions
class Campus(BasicModule):
......
from django.db import models
from backend.models.campus import Campus
from backend.models.abstract.taggedItem import TaggedItem, TaggedItemSerializer, TaggedItemViewSet
from backend.utils import get_model_config, get_viewset_permissions
from backend_app.models.campus import Campus
from backend_app.models.abstract.taggedItem import TaggedItem, TaggedItemSerializer, TaggedItemViewSet
from backend_app.utils import get_model_config, get_viewset_permissions
class CampusTaggedItem(TaggedItem):
......
from django.db import models
from backend.models.country import Country
from backend.models.abstract.my_model import MyModel, MyModelSerializer, MyModelVersionnedViewSet
from backend.utils import get_model_config, get_viewset_permissions
from backend_app.models.country import Country
from backend_app.models.abstract.my_model import MyModel, MyModelSerializer, MyModelVersionnedViewSet
from backend_app.utils import get_model_config, get_viewset_permissions
class City(MyModel):
......
from django.db import models
from backend.models.abstract.taggedItem import TaggedItem, TaggedItemSerializer, TaggedItemViewSet
from backend.models.city import City
from backend.utils import get_model_config, get_viewset_permissions
from backend_app.models.abstract.taggedItem import TaggedItem, TaggedItemSerializer, TaggedItemViewSet
from backend_app.models.city import City
from backend_app.utils import get_model_config, get_viewset_permissions
class CityTaggedItem(TaggedItem):
......
from django.db import models
from backend.models.abstract.my_model import MyModel, MyModelSerializer, MyModelVersionnedViewSet
from backend.utils import get_model_config, get_viewset_permissions
from backend_app.models.abstract.my_model import MyModel, MyModelSerializer, MyModelVersionnedViewSet
from backend_app.utils import get_model_config, get_viewset_permissions
# Data model based on : https://unstats.un.org/unsd/methodology/m49/overview/
......
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