Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serializer move #2069

Merged
merged 2 commits into from
Dec 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/experimenter/experiments/api_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
from experimenter.experiments.constants import ExperimentConstants
from experimenter.experiments.models import Experiment
from experimenter.experiments import email
from experimenter.experiments.serializers import (
ExperimentCloneSerializer,
from experimenter.experiments.serializers.entities import ExperimentSerializer
from experimenter.experiments.serializers.clone import ExperimentCloneSerializer
from experimenter.experiments.serializers.design import (
ExperimentDesignAddonSerializer,
ExperimentDesignBranchedAddonSerializer,
ExperimentDesignGenericSerializer,
ExperimentDesignMultiPrefSerializer,
ExperimentDesignPrefSerializer,
ExperimentDesignRolloutSerializer,
ExperimentRecipeSerializer,
ExperimentSerializer,
)
from experimenter.experiments.serializers.recipe import ExperimentRecipeSerializer


class ExperimentListView(ListAPIView):
Expand Down
2 changes: 1 addition & 1 deletion app/experimenter/experiments/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
ExperimentComment,
ExperimentVariant,
)
from experimenter.experiments.serializers import ChangeLogSerializer
from experimenter.experiments.serializers.entities import ChangeLogSerializer
from experimenter.notifications.models import Notification


Expand Down
2 changes: 1 addition & 1 deletion app/experimenter/experiments/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def generate_normandy_slug(self):

@property
def normandy_recipe_json(self):
from experimenter.experiments.serializers import ExperimentRecipeSerializer
from experimenter.experiments.serializers.recipe import ExperimentRecipeSerializer

return json.dumps(ExperimentRecipeSerializer(self).data, indent=2)

Expand Down
Loading