plain.admin 0.20.0__py3-none-any.whl → 0.21.1__py3-none-any.whl
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.
- plain/admin/assets/admin/admin.css +10 -3
- plain/admin/templates/admin/base.html +5 -3
- plain/admin/templates/admin/detail.html +1 -1
- plain/admin/templates/admin/list.html +3 -3
- plain/admin/views/models.py +1 -1
- {plain_admin-0.20.0.dist-info → plain_admin-0.21.1.dist-info}/METADATA +1 -1
- {plain_admin-0.20.0.dist-info → plain_admin-0.21.1.dist-info}/RECORD +9 -9
- {plain_admin-0.20.0.dist-info → plain_admin-0.21.1.dist-info}/WHEEL +0 -0
- {plain_admin-0.20.0.dist-info → plain_admin-0.21.1.dist-info}/licenses/LICENSE +0 -0
@@ -14,12 +14,19 @@ table {
|
|
14
14
|
|
15
15
|
th {
|
16
16
|
text-align: left;
|
17
|
-
padding: 0 0.5rem;
|
18
|
-
color: rgb(55, 65, 81);
|
17
|
+
padding: 0.5rem 0.5rem;
|
19
18
|
}
|
20
19
|
|
21
20
|
table th a {
|
22
|
-
color:
|
21
|
+
color: rgba(255, 255, 255, 0.60);
|
22
|
+
}
|
23
|
+
|
24
|
+
table td a {
|
25
|
+
color: white;
|
26
|
+
|
27
|
+
&:hover {
|
28
|
+
text-decoration: none;
|
29
|
+
}
|
23
30
|
}
|
24
31
|
|
25
32
|
tbody tr:hover {
|
@@ -32,7 +32,7 @@
|
|
32
32
|
</button>
|
33
33
|
|
34
34
|
<a class="inline-flex items-center text-stone-300" href="{{ url('admin:index') }}">
|
35
|
-
<span class="text-stone-400">Admin</span>
|
35
|
+
<span class="text-stone-400 font-semibold">Admin</span>
|
36
36
|
</a>
|
37
37
|
|
38
38
|
{#
|
@@ -96,7 +96,7 @@
|
|
96
96
|
</div>
|
97
97
|
<div class="mt-8 flex flex-col text-sm pb-3 pt-3 text-stone-400 sticky bottom-0 bg-stone-950">
|
98
98
|
<a class="sm:hidden py-1" href="{{ url('admin:search') }}">Global search</a>
|
99
|
-
<div class="flex items-center justify-between">
|
99
|
+
<div class="flex items-center justify-between space-x-1.5">
|
100
100
|
<div class="flex items-center truncate">
|
101
101
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="w-6 h-6 mr-1.5 bi bi-person-circle" viewBox="0 0 16 16">
|
102
102
|
<path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/>
|
@@ -106,7 +106,9 @@
|
|
106
106
|
{{ request.user }}
|
107
107
|
</span>
|
108
108
|
</div>
|
109
|
-
<
|
109
|
+
<form method="POST" action="{{ url('logout') }}" class="flex-shrink-0">
|
110
|
+
<button type="submit" class="hover:text-white hover:underline">Log out</button>
|
111
|
+
</form>
|
110
112
|
</div>
|
111
113
|
</div>
|
112
114
|
</aside>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
Toggle raw values
|
10
10
|
</button>
|
11
11
|
|
12
|
-
<dl class="text-sm mt-3
|
12
|
+
<dl class="text-sm mt-3 grid grid-cols-1 sm:grid-cols-[max-content_1fr] sm:gap-y-2 gap-x-8">
|
13
13
|
{% for field in fields %}
|
14
14
|
<dt class="font-medium mt-4 sm:mt-0"><code>{{ field }}</code></dt>
|
15
15
|
<dd class="flex items-center mt-1 sm:mt-0">
|
@@ -76,20 +76,20 @@
|
|
76
76
|
<div class="w-full overflow-auto mt-2">
|
77
77
|
<table class="text-sm table-auto">
|
78
78
|
<thead>
|
79
|
-
<tr class="bg-white/5 [
|
79
|
+
<tr class="bg-white/5 [&>:first-child]:rounded-l-md [&>:last-child]:rounded-r-md">
|
80
80
|
{% if table_style != "simple" and actions %}<th></th>{% endif %}
|
81
81
|
|
82
82
|
{% for field in fields %}
|
83
83
|
{% if order_by_field is defined %}
|
84
84
|
<th>
|
85
85
|
{% if table_style == "simple" %}
|
86
|
-
<div class="font-mono text-xs font-normal
|
86
|
+
<div class="font-mono text-xs font-normal">
|
87
87
|
{{ field }}
|
88
88
|
</div>
|
89
89
|
{% else %}
|
90
90
|
<a
|
91
91
|
data-merge-params
|
92
|
-
class="font-mono text-xs font-normal
|
92
|
+
class="font-mono text-xs font-normal"
|
93
93
|
href="?page=1&order_by={{ '-' if not order_by_direction else '' }}{{ field }}">
|
94
94
|
{{ field }}
|
95
95
|
{% if field == order_by_field %}
|
plain/admin/views/models.py
CHANGED
@@ -151,7 +151,7 @@ class AdminModelDetailView(AdminDetailView):
|
|
151
151
|
if fields := super().get_fields():
|
152
152
|
return fields
|
153
153
|
|
154
|
-
return [
|
154
|
+
return [f.name for f in self.object._meta.get_fields() if f.concrete]
|
155
155
|
|
156
156
|
def get_field_value(self, obj, field: str):
|
157
157
|
try:
|
@@ -7,7 +7,7 @@ plain/admin/middleware.py,sha256=k3yP1o3CzvLiZZSoxqq-DvAZlp4sICRauaT-kD3FJKM,398
|
|
7
7
|
plain/admin/templates.py,sha256=jLhJkuvqnPMBQTP-kzojFaqmFi50GZHvrVzuZCLc3rk,836
|
8
8
|
plain/admin/toolbar.py,sha256=dsZa_I-tTbaeOluCbvHGEqy4_Suw6Q_JSrKl8Eu08qY,973
|
9
9
|
plain/admin/urls.py,sha256=Q44_HpivSHJfDQWJLtm_OQVWm0VQlqAg8sa1M1NdxFM,1331
|
10
|
-
plain/admin/assets/admin/admin.css,sha256
|
10
|
+
plain/admin/assets/admin/admin.css,sha256=-KdI7geASBsSbTve26VeJ-wCrdHWyD3EdjDZ9o393Yc,2653
|
11
11
|
plain/admin/assets/admin/admin.js,sha256=AWD6UqPxGqJFaUhYTDWe4niTgk0thzU4gRl7qK41KNc,2759
|
12
12
|
plain/admin/assets/admin/chart.js,sha256=GZiCYXjL6SmyuSCGE0Df80QvOUkw6H2YD-zsVID05lo,205089
|
13
13
|
plain/admin/assets/admin/jquery-3.6.1.slim.min.js,sha256=W2eb4M1jdKpuZ_-_KnDgqI9X9SwGLrXtO0dknpNPJyE,72534
|
@@ -33,11 +33,11 @@ plain/admin/querystats/core.py,sha256=GLhKwWwO2OwN2wneAgfbKRQzIIjZqegZYb1fMVwilj
|
|
33
33
|
plain/admin/querystats/middleware.py,sha256=M1EVdX11H545IdZlppbSIL_h8hzBIrMELrYrcAb4aq0,3192
|
34
34
|
plain/admin/querystats/urls.py,sha256=SHYbWvxjg6kFHR-e6T4vFmh4VqyPG7gYHXxDKdB4qz0,230
|
35
35
|
plain/admin/querystats/views.py,sha256=58UpxaBp_H80Tf7azi4QcphgHbXgP5iqLDf-qZJfzRI,788
|
36
|
-
plain/admin/templates/admin/base.html,sha256=
|
36
|
+
plain/admin/templates/admin/base.html,sha256=M3z5JwRPSS9fc3Rcg9YxPWTNL0wNo98oaEv3Ue3xlvs,8466
|
37
37
|
plain/admin/templates/admin/delete.html,sha256=lNuU2G-BR6TH6NUmh7VcvjnEuFeI84rwwk_oO1jkUq0,431
|
38
|
-
plain/admin/templates/admin/detail.html,sha256=
|
38
|
+
plain/admin/templates/admin/detail.html,sha256=AizpXs6HguFzwbk7JDbH8poJB5dM2CaVVaQ4FThAHaw,730
|
39
39
|
plain/admin/templates/admin/index.html,sha256=b65tcZhv9QfvmjePySU7MmzUlpMECIXP8dBH-a3Eyxw,69
|
40
|
-
plain/admin/templates/admin/list.html,sha256=
|
40
|
+
plain/admin/templates/admin/list.html,sha256=MgyVmaoeZ8YMTWbK9mFagIScbVwpTOmZ2FJ0XZQ_xDM,8741
|
41
41
|
plain/admin/templates/admin/page.html,sha256=wzRR-JLs8CgCOoB3BMoYWqTMpYM0z4X2qlqdwAe0YjM,67
|
42
42
|
plain/admin/templates/admin/search.html,sha256=zfwnXoztAFnj8OmwxJcWaqo-SKCy50bLwfwSrAnAtoQ,1799
|
43
43
|
plain/admin/templates/admin/cards/base.html,sha256=2HRIxvt5Kf0MPVv7XLQZcc7vfz3YR_WLsrVgbQtyN5I,933
|
@@ -71,12 +71,12 @@ plain/admin/templates/querystats/toolbar.html,sha256=dePs614akVWUD8IlgzvQ0TREThv
|
|
71
71
|
plain/admin/templates/toolbar/toolbar.html,sha256=KcGAG6kRmx60wfqEsdD5C4nDMilH-JvPjHoU6EktfaY,5985
|
72
72
|
plain/admin/views/__init__.py,sha256=nF6AENZ3Xxyi08OTRrF6e-HYBkZSFj7XBK2mVzMYqN4,846
|
73
73
|
plain/admin/views/base.py,sha256=S1oaMUXnMOwRozbn2K-tk9tL4BMimemfMagZD9QxrJw,3512
|
74
|
-
plain/admin/views/models.py,sha256=
|
74
|
+
plain/admin/views/models.py,sha256=gos3KBPvOovULG8xZYKOO4ENrQlUIGrlIkRPO99wkDw,7196
|
75
75
|
plain/admin/views/objects.py,sha256=Wcw7_k4BDz4h49e4BGtq6g-3jo5-T0fJU9CfMcvMQK4,11319
|
76
76
|
plain/admin/views/registry.py,sha256=Lxib4YSQCMHb_zACnLKymJakV8jCZPWYll7J8-aV9Xw,3712
|
77
77
|
plain/admin/views/types.py,sha256=ONMMdUoapgMoUVYgSIe-4YCdfvaVMQ4jgPWYiMo0pDk,178
|
78
78
|
plain/admin/views/viewsets.py,sha256=dqMlQ6kLn9iqd9BwBWAZT1S271wH1FdfM5HXbOgBMEw,1655
|
79
|
-
plain_admin-0.
|
80
|
-
plain_admin-0.
|
81
|
-
plain_admin-0.
|
82
|
-
plain_admin-0.
|
79
|
+
plain_admin-0.21.1.dist-info/METADATA,sha256=9tYFbMU5aEW70SJaUzSZzF0diCu2IndAeRVNK6JEwHc,6821
|
80
|
+
plain_admin-0.21.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
81
|
+
plain_admin-0.21.1.dist-info/licenses/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
|
82
|
+
plain_admin-0.21.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|