Permalink
Browse files

Tie FiberURLField to serializers.URLField.

  • Loading branch information...
1 parent c361c6a commit 9509e082e693d9cd4c7fe83880b5d551a57f83ca @markotibold markotibold committed Nov 17, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 fiber/rest_api/serializers.py
@@ -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)

0 comments on commit 9509e08

Please sign in to comment.