Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle custom form fields #42

Open
aklos opened this issue Mar 16, 2015 · 1 comment
Open

Handle custom form fields #42

aklos opened this issue Mar 16, 2015 · 1 comment

Comments

@aklos
Copy link

aklos commented Mar 16, 2015

Hi,
Currently an object form is fetched using self.get_form(request, obj) but this results in field errors when you have custom fields which aren't defined in the model. I've been getting around this issue by replacing get_form() with admin_site._registry[model].form but I'm not sure if it's safe.

@bufke
Copy link
Member

bufke commented Jun 7, 2015

I can't commit time here, but if you can I'd accept a pull request. Honestly this is a very old project that I copied from a blog and modernized a little bit. The entire code base could probably be done better and allow for more edge cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants