-
Notifications
You must be signed in to change notification settings - Fork 348
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
django admin: custom index template #227
django admin: custom index template #227
Conversation
2de43e7
to
77fb4ff
Compare
Thanks for this What w good idea. I will give this a look later and merge in |
7243a8e
to
ffa56ed
Compare
{% is_tenant_app app as is_tenant_app %} | ||
<div class="app-{{ app.app_label }} module"> | ||
<table id="change-history"> | ||
{% if is_tenant_app_and_public %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hide the models when in public schema and the app is a tenant app
<table id="change-history"> | ||
{% if is_tenant_app_and_public %} | ||
<div class="module"> | ||
<caption {% if is_tenant_app %}style="background-color:#f7d904"{% endif %}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change color of the app if it's a tenant app
</caption> | ||
</div> | ||
{% else %} | ||
<caption {% if is_tenant_app %}style="background-color:#f7d904"{% endif %} > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change color of the app if it's a tenant app
ffa56ed
to
9349cdd
Compare
{% is_tenant_app app as is_tenant_app %} | ||
<div class="app-{{ app.app_label }} module"> | ||
<table id="change-history"> | ||
{% if is_tenant_app and is_public_schema %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check if the app is tenant and we're in the public schema
@domdinicola thanks mereged now |
This PR introduces a custom index template: