Skip to content

Commit

Permalink
Cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
georgedorn committed Jun 17, 2019
1 parent d1cb0fa commit 75d7996
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tastypie/contrib/gis/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def hydrate(self, bundle):
def dehydrate(self, obj, for_list=False, for_update=False):
return self.convert(super(GeometryApiField, self).dehydrate(obj))

def convert(self, value, for_update=False):
def convert(self, value):
if value is None:
return None

Expand Down
2 changes: 1 addition & 1 deletion tests/core/tests/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,7 @@ def hydrate_note(self, bundle):
return bundle


class ALwaysDataBlankMediaBitResource(ModelResource):
class AlwaysDataBlankMediaBitResource(ModelResource):
# Allow ``note`` to be omitted, even though it's a required field.
note = fields.ToOneField(NoteResource, 'note', blank=True)

Expand Down

0 comments on commit 75d7996

Please sign in to comment.