Skip to content

Commit

Permalink
resolve django 1.5 error: get_inline_instances() takes exactly 2 argu…
Browse files Browse the repository at this point in the history
…ments (3 given)
  • Loading branch information
rizumu committed Dec 21, 2012
1 parent 2d52567 commit 5f0bf51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms/admin/pageadmin.py
Expand Up @@ -443,7 +443,7 @@ def get_form(self, request, obj=None, **kwargs):

return form

def get_inline_instances(self, request):
def get_inline_instances(self, request, obj=None):
inlines = super(PageAdmin, self).get_inline_instances(request)
if settings.CMS_PERMISSION and hasattr(self, '_current_page')\
and self._current_page:
Expand Down

0 comments on commit 5f0bf51

Please sign in to comment.