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

extend the admin.ModelAdmin class #31

Closed
GoogleCodeExporter opened this issue Mar 29, 2016 · 2 comments
Closed

extend the admin.ModelAdmin class #31

GoogleCodeExporter opened this issue Mar 29, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

I'm a newbie on this, but maybe it could be better if in the admin.py use a
subclass of ModelAdmin to use this great tool, instead of the
make_ajax_form call.

Original issue reported on code.google.com by peil...@gmail.com on 23 Feb 2010 at 12:37

@GoogleCodeExporter
Copy link
Author

actually the admin doesn't specify fields or widgets, it only has a fieldsets 
var which references fields by name 
and the Form must specify the fields/widgets.  in all cases custom fields and 
widgets are specified in the form 
class.  the form class handles the form and processing the form.  the admin is 
related only to the admin site 
and basically is just an extra wrapper on the form and has some code for 
connecting with the rest of the admin 
site.

also, there is an assumption in the django community that the Admin does 
everything always.  forms are often 
used outside of the Admin site, and in general I don't let people in the admin 
site at all.

hope that helps

Original comment by crucialf...@gmail.com on 23 Feb 2010 at 4:16

  • Changed state: WontFix

@GoogleCodeExporter
Copy link
Author

ok, thanks. 
Anyway, I think in the django admin is not well resolved the many2many and 
foreignKey
relationships, specially when one of the related tables has thousands of rows.

Original comment by peil...@gmail.com on 23 Feb 2010 at 4:41

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

1 participant