Commit 0204a094 authored by Florent Chehab's avatar Florent Chehab

Fix naming to prevent confusion of module vs function

parent 2b4429c0
Pipeline #27147 passed with stages
in 2 minutes and 37 seconds
from backend.fields.jSONField import JSONField
from backend.fields import JSONField
from rest_framework import serializers
field_mapping = serializers.ModelSerializer.serializer_field_mapping
......
from .jSONField import JSONField # noqa: F401
This diff is collapsed.
......@@ -7,4 +7,4 @@ from .isDriOrReadOnly import IsDriOrReadOnly # noqa: F401
from .default_viewset_permissions import DEFAULT_VIEWSET_PERMISSIONS # noqa: F401
from .obj_moderation_permission import OBJ_MODERATION_PERMISSIONS # noqa: F401
from .obj_moderation_permission import DEFAULT_OBJ_MODERATION_LV # noqa: F401
from .is_moderation_required import is_moderation_required # noqa: F401
from .__is_moderation_required import is_moderation_required # noqa: F401
from backend.utils.get_user_level import get_user_level
from backend.utils.__get_user_level import get_user_level
from django.conf import settings
from .obj_moderation_permission import OBJ_MODERATION_PERMISSIONS
......
from .is_member import is_member
from backend.utils import is_member
def does_user_have_moderation_rights(user):
......
from .is_member import is_member
from .__is_member import is_member
from backend.permissions import OBJ_MODERATION_PERMISSIONS
......
from .is_member import is_member # noqa: F401
from .find_api_end_point_for_viewset import find_api_end_point_for_viewset # noqa: F401
from .get_model_config import get_model_config # noqa: F401
from .get_viewset_permissions import get_viewset_permissions # noqa: F401
from .does_user_have_moderation_rights import does_user_have_moderation_rights # noqa: F401
from .get_user_level import get_user_level # noqa: F401
from .__is_member import is_member # noqa: F401
from .__get_viewset_permissions import get_viewset_permissions # noqa: F401
from .__find_api_end_point_for_viewset import find_api_end_point_for_viewset # noqa: F401
from .__get_user_level import get_user_level # noqa: F401
from .__get_model_config import get_model_config # noqa: F401
from .__does_user_have_moderation_rights import does_user_have_moderation_rights # noqa: F401
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