diff --git a/chris_backend/feeds/serializers.py b/chris_backend/feeds/serializers.py index 0acb148a..8c8816d7 100644 --- a/chris_backend/feeds/serializers.py +++ b/chris_backend/feeds/serializers.py @@ -138,15 +138,6 @@ def update(self, instance, validated_data): instance.folder.create_public_link() return super(FeedSerializer, self).update(instance, validated_data) - def validate_name(self, name): - """ - Overriden to check that the feed's name does not contain forward slashes. - """ - if '/' in name: - raise serializers.ValidationError( - ["This field may not contain forward slashes."]) - return name - def validate_public(self, public): """ Overriden to check that only the owner or superuser chris can change a feed's diff --git a/chris_backend/feeds/tests/test_serializers.py b/chris_backend/feeds/tests/test_serializers.py index 9bf169ff..477cf96f 100755 --- a/chris_backend/feeds/tests/test_serializers.py +++ b/chris_backend/feeds/tests/test_serializers.py @@ -139,16 +139,6 @@ def setUp(self): feed = Feed.objects.get(name=self.feedname) self.feed_serializer = FeedSerializer(feed) - def test_validate_name(self): - """ - Test whether overriden validate_name method raises a serializers.ValidationError - when the feed name contains forward slashes. - """ - with self.assertRaises(serializers.ValidationError): - self.feed_serializer.validate_name('myfeed/') - name = self.feed_serializer.validate_name('myfeed') - self.assertEqual(name, 'myfeed') - def test_get_started_jobs(self): """ Test whether overriden get_created_jobs method returns the correct number of