Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Floris272 committed Oct 15, 2024
1 parent a23182d commit 4c1dda9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/open_producten/conf/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
ELASTIC_APM["DEBUG"] = True

# Django debug toolbar
if not DEBUG:
if "test" not in sys.argv:
INSTALLED_APPS += ["debug_toolbar"]
MIDDLEWARE = ["debug_toolbar.middleware.DebugToolbarMiddleware"] + MIDDLEWARE
INTERNAL_IPS = ("127.0.0.1",)
Expand Down
3 changes: 3 additions & 0 deletions src/open_producten/producttypes/admin/price.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ class PriceOptionInline(admin.TabularInline):
class PriceAdmin(admin.ModelAdmin):
model = Price
inlines = [PriceOptionInline]

def get_queryset(self, request):
return super().get_queryset(request).select_related("product_type")
2 changes: 0 additions & 2 deletions src/open_producten/templates/admin/base_site.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
{% block extrastyle %}
{{ block.super }}

<link rel="stylesheet" type="text/css" href="{% static 'bundles/admin_overrides.css' %}">

<link href="{% static 'ico/favicon.svg' %}" sizes="any" rel="icon" type="image/svg+xml" />
<link href="{% static 'ico/favicon-96x96.png' %}" sizes="96x96" rel="icon" type="image/png" />
<link href="{% static 'ico/favicon-32x32.png' %}" sizes="32x32" rel="icon" type="image/png" />
Expand Down
5 changes: 2 additions & 3 deletions src/open_producten/templates/master.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<link href="{% static 'ico/favicon-32x32.png' %}" sizes="32x32" rel="icon" type="image/png" />
<link href="{% static 'ico/favicon.png' %}" sizes="16x16" rel="icon" type="image/png" />
<link href="{% static 'ico/favicon.png' %}" rel="shortcut icon">
<link href="{% static 'bundles/open_producten-css.css' %}" media="all" rel="stylesheet" />
{% block extra_css %}{% endblock %}
</head>

Expand All @@ -28,7 +27,7 @@
<p>
Developed by <a class="link" href="https://www.maykinmedia.nl">Maykin</a><br>
within the <a class="link" href="https://opengem.nl">Open Gemeente Initiatief</a> &copy; 2024<br>

</p>
</div>
<div class="footer__col">
Expand Down Expand Up @@ -56,7 +55,7 @@ <h5 class="footer__header">Other</h5>
</div>
</div>
</footer>

{% if dsn %}
<script src="https://browser.sentry-cdn.com/5.10.1/bundle.min.js" integrity="sha384-sAOze6ZTBIpiWBF3VlUteSInM4rYpjxrejp1wMmmKqA9clRZ1vZJ36Ihmt1ilTrG" crossorigin="anonymous"></script>
<script>Sentry.init({ dsn: '{{ dsn }}'});</script>
Expand Down

0 comments on commit 4c1dda9

Please sign in to comment.