Skip to content

Commit

Permalink
Don't overwrite builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
evenicoulddoit committed Jan 11, 2017
1 parent 73ae854 commit 55e4885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rest_framework_serializer_extensions/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def to_internal_value(self, value):


class HashedHyperlinkMixin(GetHashIdModelMixin):
def get_url(self, obj, view_name, request, format):
def get_url(self, obj, view_name, request, fmt):
"""
Use the field source in combination with the model to generate the URL.
"""
Expand All @@ -85,7 +85,7 @@ def get_url(self, obj, view_name, request, format):
)
kwargs = {self.lookup_url_kwarg: external_id}
return self.reverse(
view_name, kwargs=kwargs, request=request, format=format
view_name, kwargs=kwargs, request=request, format=fmt
)


Expand Down

0 comments on commit 55e4885

Please sign in to comment.