plain.admin 0.21.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.
@@ -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
- <a class="ml-2 hover:text-white hover:underline flex-shrink-0" href="{{ url('logout') }}">Log out</a>
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>
@@ -151,7 +151,7 @@ class AdminModelDetailView(AdminDetailView):
151
151
  if fields := super().get_fields():
152
152
  return fields
153
153
 
154
- return ["pk"] + [f.name for f in self.object._meta.get_fields() if f.concrete]
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.admin
3
- Version: 0.21.0
3
+ Version: 0.21.1
4
4
  Summary: Admin dashboard and tools for Plain.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-Expression: BSD-3-Clause
@@ -33,7 +33,7 @@ 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=NvhAxtYQSTjkX9RZbp6mQ-uh_RZN6Bb02texjEKY5es,8338
36
+ plain/admin/templates/admin/base.html,sha256=M3z5JwRPSS9fc3Rcg9YxPWTNL0wNo98oaEv3Ue3xlvs,8466
37
37
  plain/admin/templates/admin/delete.html,sha256=lNuU2G-BR6TH6NUmh7VcvjnEuFeI84rwwk_oO1jkUq0,431
38
38
  plain/admin/templates/admin/detail.html,sha256=AizpXs6HguFzwbk7JDbH8poJB5dM2CaVVaQ4FThAHaw,730
39
39
  plain/admin/templates/admin/index.html,sha256=b65tcZhv9QfvmjePySU7MmzUlpMECIXP8dBH-a3Eyxw,69
@@ -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=M4qoz3IpZuD_9DG25vKUNnfijAJhj33sXSciw2edkGE,7205
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.21.0.dist-info/METADATA,sha256=BHrgdPFcPORAgH8KS6qrzinFTdlafAe4Htn5lts6eww,6821
80
- plain_admin-0.21.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
81
- plain_admin-0.21.0.dist-info/licenses/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
82
- plain_admin-0.21.0.dist-info/RECORD,,
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,,