Skip to content

Wrong number of parameters for get_inline_instances in Django 1.5 #366

@jensenbox

Description

@jensenbox

Line 997 of django.contrib.admin.options.py defines:

inline_instances = self.get_inline_instances(request, None)

In FeinCMS the signature is:

def get_inline_instances(self, request):

So the calling method dies with a:

get_inline_instances() takes exactly 2 arguments (3 given)

when you go to add items in the admin interface.

I think changing the signature to:

def get_inline_instances(self, request, obj=None):

will fix it

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions