django-admin-react 1.3.3__tar.gz → 1.3.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/PKG-INFO +1 -1
  2. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/templates/admin/base_site.html +12 -10
  3. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/templates/django_admin_react/_experience_toggle_strip.html +11 -2
  4. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/pyproject.toml +1 -1
  5. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/LICENSE +0 -0
  6. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/README.md +0 -0
  7. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/README.md +0 -0
  8. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/__init__.py +0 -0
  9. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/apps.py +0 -0
  10. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/audit.py +0 -0
  11. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/conf.py +0 -0
  12. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/pwa.py +0 -0
  13. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/static/admin_react/.vite/manifest.json +0 -0
  14. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/static/admin_react/assets/ColumnLayoutModal-CNMV7ln7.js +0 -0
  15. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/static/admin_react/assets/JsonViewer-CSd5UYVK.js +0 -0
  16. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/static/admin_react/assets/index-BQZ1Sbfv.js +0 -0
  17. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/static/admin_react/assets/index-CRezJjaZ.css +0 -0
  18. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/static/admin_react/index.html +0 -0
  19. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/templates/README.md +0 -0
  20. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/templates/admin_react/README.md +0 -0
  21. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/templates/admin_react/index.html +0 -0
  22. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/templates/admin_react/login.html +0 -0
  23. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/templates/admin_react/sw.js +0 -0
  24. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/templatetags/__init__.py +0 -0
  25. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/templatetags/experience_toggle.py +0 -0
  26. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/urls.py +0 -0
  27. {django_admin_react-1.3.3 → django_admin_react-1.3.4}/django_admin_react/views.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: django-admin-react
3
- Version: 1.3.3
3
+ Version: 1.3.4
4
4
  Summary: A drop-in React single-page admin for Django, driven entirely by ModelAdmin.
5
5
  License: MIT
6
6
  Keywords: django,admin,react,spa,tailwind
@@ -7,16 +7,18 @@
7
7
  the first match wins). Documented in the README's
8
8
  "Legacy-admin escape hatch" section.
9
9
 
10
- We extend `admin/base.html` (one level up) so:
11
- - We preserve every block the consumer's own admin theme may have
12
- already redefined.
13
- - The original `base_site.html` blocks (`branding`, `nav-global`)
14
- are passed through unchanged unless the consumer overrode them.
10
+ Strip placement (#595): `{% block content %}` is overridden WITHOUT
11
+ `{{ block.super }}` by Django's `change_list.html`, `change_form.html`,
12
+ `index.html`, and `login.html` — which silently discards anything we
13
+ put in that block on most pages a user actually visits. `{% block
14
+ header %}` (defined once in `admin/base.html`) is NOT overridden by
15
+ those templates, so the strip renders consistently across the whole
16
+ admin surface AND lands visually above the admin header — exactly
17
+ where a migration-direction banner should be.
15
18
 
16
- The only thing we add is the reverse escape-hatch strip rendered
17
- above `{% block content %}`. When the prefixes aren't both set, the
18
- template tag renders nothing, so this override is **a pure no-op
19
- for consumers who haven't opted into the escape hatch**.
19
+ When the prefixes aren't both set the template tag renders nothing,
20
+ so this override is **a pure no-op for consumers who haven't opted
21
+ into the escape hatch**.
20
22
  {% endcomment %}
21
23
  {% load i18n experience_toggle %}
22
24
 
@@ -29,7 +31,7 @@
29
31
  {% endif %}
30
32
  {% endblock %}
31
33
 
32
- {% block content %}
34
+ {% block header %}
33
35
  {% experience_toggle_strip %}
34
36
  {{ block.super }}
35
37
  {% endblock %}
@@ -29,8 +29,17 @@
29
29
  <strong style="font-weight:600;">Open this page in {{ react_root }}</strong>
30
30
  </a>
31
31
  </div>
32
- {# Inline :hover via <style> so we keep zero external CSS dependencies
33
- while still meeting the "hover brightens, never dims" contract (#589). #}
32
+ {% comment %}
33
+ Inline :hover via the <style> block below so we keep zero external
34
+ CSS dependencies while still meeting the "hover brightens, never
35
+ dims" contract (#589). Django hash-form comments are single-line
36
+ only — a multi-line hash-form leaks the hash tokens onto the page
37
+ as literal text (#596), so the block comment form is mandatory
38
+ here. (Comment text deliberately avoids quoting the tag names
39
+ themselves — Django's comment lexer is a naive forward scan and
40
+ closes on the FIRST tag-close token it sees, including ones inside
41
+ the body text.)
42
+ {% endcomment %}
34
43
  <style>
35
44
  .dar-experience-toggle-link:hover,
36
45
  .dar-experience-toggle-link:focus-visible {
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "django-admin-react"
3
- version = "1.3.3"
3
+ version = "1.3.4"
4
4
  description = "A drop-in React single-page admin for Django, driven entirely by ModelAdmin."
5
5
  authors = ["django-admin-react contributors"]
6
6
  license = "MIT"