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

Register models in admin based on settings supplied #96

Open
benvand opened this issue Feb 14, 2014 · 1 comment
Open

Register models in admin based on settings supplied #96

benvand opened this issue Feb 14, 2014 · 1 comment

Comments

@benvand
Copy link
Contributor

benvand commented Feb 14, 2014

In billing/admin.py
is there a reason that all those models are blanket registered with the admin?
Could this not be based on settings? Something like

for key in settings.MERCHANT_SETTINGS:
    admin.site.register(key_model_dict['key'])
@tuxcanfly
Copy link
Member

I think we can remove the admin registration altogether. One can add them through their app's admin.py if required.

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

2 participants