зеркало из https://github.com/mozilla/normandy.git
Reorganize API into versioned packages
This commit is contained in:
Родитель
04374ab223
Коммит
e2dceca3d2
|
@ -23,7 +23,7 @@ from normandy.recipes.models import (
|
|||
Recipe,
|
||||
RecipeRevision
|
||||
)
|
||||
from normandy.recipes.api.serializers import (
|
||||
from normandy.recipes.api.v1.serializers import (
|
||||
ActionSerializer,
|
||||
ApprovalRequestSerializer,
|
||||
ClientSerializer,
|
|
@ -186,7 +186,7 @@ class Recipe(DirtyFieldsMixin, models.Model):
|
|||
return None
|
||||
|
||||
def canonical_json(self):
|
||||
from normandy.recipes.api.serializers import RecipeSerializer # Avoid circular import
|
||||
from normandy.recipes.api.v1.serializers import RecipeSerializer # Avoid circular import
|
||||
data = RecipeSerializer(self).data
|
||||
return CanonicalJSONRenderer().render(data)
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ from normandy.recipes.tests import (
|
|||
LocaleFactory,
|
||||
RecipeFactory,
|
||||
)
|
||||
from normandy.recipes.api.serializers import (
|
||||
from normandy.recipes.api.v1.serializers import (
|
||||
ActionSerializer, RecipeSerializer, SignedRecipeSerializer)
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
from django.conf.urls import url, include
|
||||
|
||||
from normandy.base.api.routers import MixedViewRouter
|
||||
from normandy.recipes.api.views import (
|
||||
from normandy.recipes.api.v1.views import (
|
||||
ActionImplementationView,
|
||||
ActionViewSet,
|
||||
ApprovalRequestViewSet,
|
||||
|
|
Загрузка…
Ссылка в новой задаче