Skip to content

Commit ab8bd5b

Browse files
committed
Update order editor in wagtail to support version 4
1 parent 215682d commit ab8bd5b

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ djangorestframework = ">=3.11,<3.15"
3535

3636
# Optional
3737
Pygments = {version = "^2.6", optional = true}
38-
wagtail = {version = ">=2.9,<4.2", optional = true}
38+
wagtail = {version = ">=2.9,<5.0", optional = true}
3939
pytest = {version = "~7.0.0", optional = true}
4040
pytest-django = {version = "~4.5.0", optional = true}
4141
pytest-cov = {version = "~3.0.0", optional = true}

salesman/admin/static/salesman/admin/wagtail_form.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
/* Style for order items table. */
2-
.salesman-order-items .w-panel__content > div,
2+
.salesman-order-form #tab-items .w-form-width {
3+
max-width: 100%;
4+
}
5+
.salesman-order-items .w-panel__content > div {
6+
overflow: auto;
7+
}
38
.salesman-order-items .object-layout {
49
flex-direction: row;
510
overflow: auto;

salesman/admin/templates/salesman/admin/wagtail_edit.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{% extends "modeladmin/edit.html" %}
22
{% load i18n wagtailadmin_tags %}
33

4+
{% block form %}
5+
<div class="salesman-order-form">
6+
{{ block.super }}
7+
</div>
8+
{% endblock %}
9+
410
{% block footer %}
511
<footer class="footer">
612
<ul>

0 commit comments

Comments
 (0)