Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
crccheck committed Mar 31, 2014
1 parent b50e350 commit ca952da
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions django_object_actions/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,20 @@ def to_dict(tool_name):
custom_attrs=custom_attrs,
)

context['objectactions'] = [to_dict(x) for x in self.get_object_actions(request, context, **kwargs)]
return super(BaseDjangoObjectActions, self).render_change_form(request,
context, **kwargs)


def get_object_actions(self, request, context, **kwargs):
return self.objectactions
context['objectactions'] = [
to_dict(x) for x in
self.get_object_actions(request, context, **kwargs)
]
return super(BaseDjangoObjectActions, self).render_change_form(
request, context, **kwargs)

##################
# CUSTOM METHODS #
##################

def get_object_actions(self, request, context, **kwargs):
return self.objectactions

def get_djoa_button_attrs(self, tool):
attrs = getattr(tool, 'attrs', {})
# href is not allowed to be set. should an exception be raised instead?
Expand Down

0 comments on commit ca952da

Please sign in to comment.