plain 0.72.2__py3-none-any.whl → 0.73.0__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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # plain changelog
2
2
 
3
+ ## [0.73.0](https://github.com/dropseed/plain/releases/plain@0.73.0) (2025-10-07)
4
+
5
+ ### What's changed
6
+
7
+ - Internal preflight result handling updated to use `model_options` instead of `_meta` for model label retrieval ([73ba469](https://github.com/dropseed/plain/commit/73ba469ba0))
8
+
9
+ ### Upgrade instructions
10
+
11
+ - No changes required
12
+
3
13
  ## [0.72.2](https://github.com/dropseed/plain/releases/plain@0.72.2) (2025-10-06)
4
14
 
5
15
  ### What's changed
@@ -23,9 +23,11 @@ class PreflightResult:
23
23
  def __str__(self) -> str:
24
24
  if self.obj is None:
25
25
  obj = ""
26
- elif hasattr(self.obj, "_meta") and hasattr(self.obj._meta, "label"):
26
+ elif hasattr(self.obj, "model_options") and hasattr(
27
+ self.obj.model_options, "label"
28
+ ):
27
29
  # Duck type for model objects - use their meta label
28
- obj = self.obj._meta.label
30
+ obj = self.obj.model_options.label
29
31
  else:
30
32
  obj = str(self.obj)
31
33
  id_part = f"({self.id}) " if self.id else ""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain
3
- Version: 0.72.2
3
+ Version: 0.73.0
4
4
  Summary: A web framework for building products with Python.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-File: LICENSE
@@ -1,5 +1,5 @@
1
1
  plain/AGENTS.md,sha256=As6EFSWWHJ9lYIxb2LMRqNRteH45SRs7a_VFslzF53M,1046
2
- plain/CHANGELOG.md,sha256=m-g1Jycq3u9KeMyMUD4pSjJhubEoefzEaPvhppCaCcM,22837
2
+ plain/CHANGELOG.md,sha256=xPFdA8w7p55_OeVgvSdkDTs5OPQaaNQso_kcPXbrkDI,23168
3
3
  plain/README.md,sha256=5BJyKhf0TDanWVbOQyZ3zsi5Lov9xk-LlJYCDWofM6Y,4078
4
4
  plain/__main__.py,sha256=GK39854Lc_LO_JP8DzY9Y2MIQ4cQEl7SXFJy244-lC8,110
5
5
  plain/debug.py,sha256=C2OnFHtRGMrpCiHSt-P2r58JypgQZ62qzDBpV4mhtFM,855
@@ -94,7 +94,7 @@ plain/preflight/__init__.py,sha256=-uBIVLD1DlJUVypQsEcrOtaNAhECbOpKhyoz0c_WMhA,4
94
94
  plain/preflight/checks.py,sha256=kJcr-Hq5bsjKw1BUYR6r6nFg3Ecgrd1DS5SudUr4rSU,289
95
95
  plain/preflight/files.py,sha256=OjD76e-l_cDXJGHMk21LsoPp6V_HxD5v0zyvOKkEDu0,840
96
96
  plain/preflight/registry.py,sha256=87FvZRsbbbuFJGKJ2PC5-o9aZ1MIKgLPYOTR3ghlzK4,2920
97
- plain/preflight/results.py,sha256=OtqHUCdq0hNdwNxSLL4CEocNE4mDo2HqFN-XgxYsjLo,1069
97
+ plain/preflight/results.py,sha256=2LaylWEHDvDOc7M3rvZsmOonV__ziSs1G_OpIXl4Qrk,1115
98
98
  plain/preflight/security.py,sha256=nMbflO2LN49oKAAaa-tYvuweNB0RWv1z3w9niU037n0,3059
99
99
  plain/preflight/urls.py,sha256=Asw_vq-70NRqr15yuBAYL0JCZ04liumORYT3I3KmF_k,437
100
100
  plain/runtime/README.md,sha256=ZZ3NPTjtxwyfw1V827YNwkWc8MiH5rWiy27HrN13qZ8,4819
@@ -162,8 +162,8 @@ plain/views/forms.py,sha256=ESZOXuo6IeYixp1RZvPb94KplkowRiwO2eGJCM6zJI0,2400
162
162
  plain/views/objects.py,sha256=5y0PoPPo07dQTTcJ_9kZcx0iI1O7regsooAIK4VqXQ0,5579
163
163
  plain/views/redirect.py,sha256=mIpSAFcaEyeLDyv4Fr6g_ektduG4Wfa6s6L-rkdazmM,2154
164
164
  plain/views/templates.py,sha256=9LgDMCv4C7JzLiyw8jHF-i4350ukwgixC_9y4faEGu0,1885
165
- plain-0.72.2.dist-info/METADATA,sha256=oNUbDDi3O3AiTeJuuZ_tPo1D5tBhEkzhNIligFBg-kE,4488
166
- plain-0.72.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
167
- plain-0.72.2.dist-info/entry_points.txt,sha256=wvMzY-iREvfqRgyLm77htPp4j_8CQslLoZA15_AnNo8,171
168
- plain-0.72.2.dist-info/licenses/LICENSE,sha256=m0D5O7QoH9l5Vz_rrX_9r-C8d9UNr_ciK6Qwac7o6yo,3175
169
- plain-0.72.2.dist-info/RECORD,,
165
+ plain-0.73.0.dist-info/METADATA,sha256=GmC3RNUDukGn5CQYU8XKZzVVjmvp_oO--rPvKTJbd_o,4488
166
+ plain-0.73.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
167
+ plain-0.73.0.dist-info/entry_points.txt,sha256=wvMzY-iREvfqRgyLm77htPp4j_8CQslLoZA15_AnNo8,171
168
+ plain-0.73.0.dist-info/licenses/LICENSE,sha256=m0D5O7QoH9l5Vz_rrX_9r-C8d9UNr_ciK6Qwac7o6yo,3175
169
+ plain-0.73.0.dist-info/RECORD,,
File without changes