lambdalisue/django-inspectional-registration

TypeError

Closed this issue · 4 comments

I am still getting a type error in django 1.5.1 while trying to access the profile in admin to take action. Did a pip install like this pip install git+https://github.com/lambdalisue/django-inspectional-registration.git#egg=django-inspectional-registration to get the latest.

My error is the same as an issue that was just closed.

Error is:

TypeError at /admin/registration/registrationprofile/1/
get_inline_instances() takes exactly 2 arguments (3 given)
Request Method: GET
Request URL: http://localhost:8000/admin/registration/registrationprofile/1/
Django Version: 1.5.1
Exception Type: TypeError
Exception Value:
get_inline_instances() takes exactly 2 arguments (3 given)

The issue should be fixed on version 0.2.16 (See https://github.com/lambdalisue/django-inspectional-registration/blob/master/registration/admin/__init__.py#L311)

Would you try the commands below?

$ pip uninstall django-inspectional-registration
$ pip install 'django-inspectional-registration>=0.2.16'

Agreed, it should be fixed based on seeing the code but the download etc is not showing that code at all. Not sure but I deleted the folder after doing the pip uninstall to make sure as well.

Changing it myself works fine but now after clicking save it says:

RuntimeError at /admin/registration/registrationprofile/1/None
You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to localhost:8000/admin/registration/registrationprofile/1/None/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.

I realized that this was fixed as well. I ended up downloading the source and installing that way since I think the newer code was not pushed out yet.