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

77 - formfield_function implementation seems to prevent subclasses of fields to provide own default form fields #76

Open
klipstein opened this issue Nov 6, 2011 · 0 comments

Comments

@klipstein
Copy link
Owner

I have created a custom field, by subclassing db.models.CharField, which provides its own formfield-method, which points to a custom form field, using the method described here: http://docs.djangoproject.com/en/dev/howto/custom-model-fields/#specifying-the-form-field-for-a-model-field

But my method never receives an empty form_class argument, as the formfield_function evaluates by isinstance, rather than direct lookup on the class.


Original link: http://code.google.com/p/dojango/issues/detail?id=77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant