diff --git a/beat/web/plotters/serializers.py b/beat/web/plotters/serializers.py index e6a6ce109494b25d89c7489448999c2c89c5f898..3577c9f5397c29c28bf4f49ed6bd206bef2ecb70 100644 --- a/beat/web/plotters/serializers.py +++ b/beat/web/plotters/serializers.py @@ -101,6 +101,7 @@ class FullPlotterSerializer(PlotterAllSerializer): class Meta(PlotterAllSerializer.Meta): default_fields = PlotterAllSerializer.Meta.default_fields + PlotterAllSerializer.Meta.extra_fields + exclude = [] #---------------------------------------------------------- @@ -117,7 +118,7 @@ class PlotterParameterCreationSerializer(ContributionCreationSerializer): def create(self, validated_data): plotterparameter = None - + if not validated_data.has_key("name"): raise serializers.ValidationError('No name provided') @@ -131,7 +132,7 @@ class PlotterParameterCreationSerializer(ContributionCreationSerializer): if not self.data.has_key("plotter"): raise serializers.ValidationError('No plotter provided') - + plotter = None try: plotter = Plotter.objects.get(id=self.data['plotter'])