Skip to content

Commit

Permalink
Tie FiberURLField to serializers.URLField.
Browse files Browse the repository at this point in the history
  • Loading branch information
markotibold committed Dec 21, 2012
1 parent c361c6a commit 9509e08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fiber/rest_api/serializers.py
Expand Up @@ -15,6 +15,10 @@ class PageSerializer(serializers.ModelSerializer):
class Meta:
model = Page

def get_field(self, model_field):
if model_field.name == 'url':
return serializers.URLField()


class MovePageSerializer(serializers.Serializer):
position = serializers.ChoiceField(choices=POSITION_CHOICES)
Expand Down

0 comments on commit 9509e08

Please sign in to comment.