plain 0.56.0__py3-none-any.whl → 0.57.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,30 @@
1
1
  # plain changelog
2
2
 
3
+ ## [0.57.0](https://github.com/dropseed/plain/releases/plain@0.57.0) (2025-08-15)
4
+
5
+ ### What's changed
6
+
7
+ - The `ResponsePermanentRedirect` class has been removed; use `ResponseRedirect` with `status_code=301` instead ([d5735ea](https://github.com/dropseed/plain/commit/d5735ea4f8))
8
+ - The `RedirectView.permanent` attribute has been replaced with `status_code` for more flexible redirect status codes ([12dda16](https://github.com/dropseed/plain/commit/12dda16731))
9
+ - Updated `RedirectView` initialization parameters: `url_name` replaces `pattern_name`, `preserve_query_params` replaces `query_string`, and removed 410 Gone functionality ([3b9ca71](https://github.com/dropseed/plain/commit/3b9ca713bf))
10
+
11
+ ### Upgrade instructions
12
+
13
+ - Replace `ResponsePermanentRedirect` imports with `ResponseRedirect` and pass `status_code=301` to the constructor
14
+ - Update `RedirectView` subclasses to use `status_code=301` instead of `permanent=True`
15
+ - Replace `pattern_name` with `url_name` in RedirectView usage
16
+ - Replace `query_string=True` with `preserve_query_params=True` in RedirectView usage
17
+
18
+ ## [0.56.1](https://github.com/dropseed/plain/releases/plain@0.56.1) (2025-07-30)
19
+
20
+ ### What's changed
21
+
22
+ - Improved `plain install` command instructions to be more explicit about completing code modifications ([83292225db](https://github.com/dropseed/plain/commit/83292225db))
23
+
24
+ ### Upgrade instructions
25
+
26
+ - No changes required
27
+
3
28
  ## [0.56.0](https://github.com/dropseed/plain/releases/plain@0.56.0) (2025-07-25)
4
29
 
5
30
  ### What's changed
plain/assets/README.md CHANGED
@@ -2,7 +2,13 @@
2
2
 
3
3
  **Serve static assets (CSS, JS, images, etc.) directly or from a CDN.**
4
4
 
5
- ## Usage
5
+ - [Overview](#overview)
6
+ - [Local development](#local-development)
7
+ - [Production deployment](#production-deployment)
8
+ - [Using `AssetView` directly](#using-assetview-directly)
9
+ - [FAQs](#faqs)
10
+
11
+ ## Overview
6
12
 
7
13
  To serve assets, put them in `app/assets` or `app/{package}/assets`.
8
14
 
@@ -62,7 +68,7 @@ class AppRouter(Router):
62
68
 
63
69
  ## FAQs
64
70
 
65
- ### How do you reference assets in Python code?
71
+ #### How do you reference assets in Python code?
66
72
 
67
73
  There is a [`get_asset_url`](./urls.py#get_asset_url) function that you can use to get the URL of an asset in Python code. This is useful if you need to reference an asset in a non-template context, such as in a redirect or an API response.
68
74
 
@@ -72,7 +78,7 @@ from plain.assets.urls import get_asset_url
72
78
  url = get_asset_url("css/style.css")
73
79
  ```
74
80
 
75
- ### What if I need the files in a different location?
81
+ #### What if I need the files in a different location?
76
82
 
77
83
  The generated/copied files are stored in `{repo}/.plain/assets/compiled`. If you need them to be somewhere else, try simply moving them after compilation.
78
84
 
@@ -81,7 +87,7 @@ plain build
81
87
  mv .plain/assets/compiled /path/to/your/static
82
88
  ```
83
89
 
84
- ### How do I upload the assets to a CDN?
90
+ #### How do I upload the assets to a CDN?
85
91
 
86
92
  The steps for this will vary, but the general idea is to compile them, and then upload the compiled assets from their [compiled location](compile.py#get_compiled_path).
87
93
 
@@ -103,7 +109,7 @@ Use the [`ASSETS_BASE_URL`](../runtime/global_settings.py#ASSETS_BASE_URL) setti
103
109
  ASSETS_BASE_URL = "https://cdn.example.com/"
104
110
  ```
105
111
 
106
- ### Why aren't the originals copied to the compiled directory?
112
+ #### Why aren't the originals copied to the compiled directory?
107
113
 
108
114
  The default behavior is to fingerprint assets, which is an exact copy of the original file but with a different filename. The originals aren't copied over because you should generally always use this fingerprinted path (that automatically uses longer-lived caching).
109
115
 
plain/chores/README.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  **Routine maintenance tasks.**
4
4
 
5
+ - [Overview](#overview)
6
+ - [Running chores](#running-chores)
7
+ - [Writing chores](#writing-chores)
8
+
9
+ ## Overview
10
+
5
11
  Chores are registered functions that can be run at any time to keep an app in a desirable state.
6
12
 
7
13
  ![](https://assets.plainframework.com/docs/plain-chores-run.png)
plain/cli/README.md CHANGED
@@ -2,67 +2,18 @@
2
2
 
3
3
  **The `plain` CLI and how to add your own commands to it.**
4
4
 
5
+ - [Overview](#overview)
6
+ - [Adding commands](#adding-commands)
7
+
8
+ ## Overview
9
+
5
10
  Commands are written using [Click](https://click.palletsprojects.com/en/8.1.x/)
6
11
  (one of Plain's few dependencies),
7
12
  which has been one of those most popular CLI frameworks in Python for a long time.
8
13
 
9
- ## Built-in commands
10
-
11
- ### `plain build`
12
-
13
- Compile static assets (used in the deploy/production process).
14
-
15
- Automatically runs `plain tailwind build` if [plain.tailwind](/plain-tailwind/) is installed.
16
-
17
- ### `plain create`
18
-
19
- Create a new local package.
20
-
21
- ### `plain preflight`
22
-
23
- Run preflight checks to ensure your app is ready to run.
24
-
25
- ### `plain run`
26
-
27
- Run a Python script in the context of your app.
28
-
29
- ### `plain setting`
30
-
31
- View the runtime value of a named setting.
32
-
33
- ### `plain help`
34
-
35
- Print help for all available commands and subcommands.
36
- Each command's help output is prefixed with the full command name for
37
- readability.
38
-
39
- ### `plain shell`
40
-
41
- Open a Python shell with the Plain loaded.
42
-
43
- To auto-load models or run other code at shell launch,
44
- create an `app/shell.py` and it will be imported automatically.
45
-
46
- ```python
47
- # app/shell.py
48
- from app.organizations.models import Organization
49
-
50
- __all__ = [
51
- "Organization",
52
- ]
53
- ```
54
-
55
- ### `plain urls list`
56
-
57
- List all the URL patterns in your app.
58
-
59
- ### `plain utils generate-secret-key`
60
-
61
- Generate a new secret key for your app, to be used in `settings.SECRET_KEY`.
62
-
63
14
  ## Adding commands
64
15
 
65
- The `register_cli` decorator can be used to add your own commands to the `plain` CLI.
16
+ The [`register_cli`](./registry.py#register_cli) decorator can be used to add your own commands to the `plain` CLI.
66
17
 
67
18
  ```python
68
19
  import click
plain/cli/install.py CHANGED
@@ -64,14 +64,15 @@ def install(
64
64
  "## Instructions",
65
65
  "",
66
66
  "For each package:",
67
- "1. Run `uv run plain docs <package>` and follow any setup instructions",
68
- "2. If the docs point out that it is a --dev tool, move it to dev dependencies: `uv remove <package> && uv add <package> --dev`",
67
+ "1. Run `uv run plain docs <package>` and read the installation instructions",
68
+ "2. If the docs point out that it is a --dev tool, move it to the dev dependencies in pyproject.toml: `uv remove <package> && uv add <package> --dev`",
69
+ "3. Go through the installation instructions and complete any code modifications that are needed",
69
70
  "",
70
71
  "DO NOT commit any changes",
71
72
  "",
72
73
  "Report back with:",
73
74
  "- Whether the setup completed successfully",
74
- "- Any manual steps that still need to be completed",
75
+ "- Any manual steps that the user will need to complete",
75
76
  "- Any issues or errors encountered",
76
77
  ]
77
78
 
plain/csrf/README.md CHANGED
@@ -2,7 +2,12 @@
2
2
 
3
3
  **Cross-Site Request Forgery (CSRF) protection.**
4
4
 
5
- Plain protects against [CSRF attacks](https://en.wikipedia.org/wiki/Cross-site_request_forgery) through a [middleware](middleware.py) that compares the generated `csrftoken` cookie with the CSRF token from the request (either `_csrftoken` in form data or the `CSRF-Token` header).
5
+ - [Overview](#overview)
6
+ - [Usage](#usage)
7
+
8
+ ## Overview
9
+
10
+ Plain protects against [CSRF attacks](https://en.wikipedia.org/wiki/Cross-site_request_forgery) through a [middleware](./middleware.py#CsrfViewMiddleware) that compares the generated `csrftoken` cookie with the CSRF token from the request (either `_csrftoken` in form data or the `CSRF-Token` header).
6
11
 
7
12
  ## Usage
8
13
 
plain/exceptions.py CHANGED
@@ -53,12 +53,6 @@ class DisallowedHost(SuspiciousOperation):
53
53
  pass
54
54
 
55
55
 
56
- class DisallowedRedirect(SuspiciousOperation):
57
- """Redirect to scheme not in allowed list"""
58
-
59
- pass
60
-
61
-
62
56
  class TooManyFieldsSent(SuspiciousOperation):
63
57
  """
64
58
  The number of fields in a GET or POST request exceeded
plain/forms/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  **HTML form handling and validation.**
4
4
 
5
+ - [Overview](#overview)
6
+
7
+ ## Overview
8
+
5
9
  The `Form` and `Field` classes help output, parse, and validate form data from an HTTP request. Unlike other frameworks, the HTML inputs are not rendered automatically, though there are some helpers for you to do your own rendering.
6
10
 
7
11
  With forms, you will typically use one of the built-in view classes to tie everything together.
plain/http/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  **HTTP request and response handling.**
4
4
 
5
+ - [Overview](#overview)
6
+
7
+ ## Overview
8
+
5
9
  Typically you will interact with [request](request.py#HttpRequest) and [response](response.py#ResponseBase) objects in your views and middleware.
6
10
 
7
11
  ```python
plain/http/__init__.py CHANGED
@@ -19,7 +19,6 @@ from plain.http.response import (
19
19
  ResponseNotAllowed,
20
20
  ResponseNotFound,
21
21
  ResponseNotModified,
22
- ResponsePermanentRedirect,
23
22
  ResponseRedirect,
24
23
  ResponseServerError,
25
24
  StreamingResponse,
@@ -36,7 +35,6 @@ __all__ = [
36
35
  "ResponseBase",
37
36
  "StreamingResponse",
38
37
  "ResponseRedirect",
39
- "ResponsePermanentRedirect",
40
38
  "ResponseNotModified",
41
39
  "ResponseBadRequest",
42
40
  "ResponseForbidden",
plain/http/response.py CHANGED
@@ -10,10 +10,8 @@ from email.header import Header
10
10
  from functools import cached_property
11
11
  from http.client import responses
12
12
  from http.cookies import SimpleCookie
13
- from urllib.parse import urlparse
14
13
 
15
14
  from plain import signals
16
- from plain.exceptions import DisallowedRedirect
17
15
  from plain.http.cookie import sign_cookie_value
18
16
  from plain.json import PlainJSONEncoder
19
17
  from plain.runtime import settings
@@ -566,19 +564,18 @@ class FileResponse(StreamingResponse):
566
564
  self.headers["Content-Disposition"] = content_disposition
567
565
 
568
566
 
569
- class ResponseRedirectBase(Response):
570
- allowed_schemes = ["http", "https", "ftp"]
567
+ class ResponseRedirect(Response):
568
+ """HTTP redirect response"""
569
+
570
+ status_code = 302
571
571
 
572
572
  def __init__(self, redirect_to, **kwargs):
573
573
  super().__init__(**kwargs)
574
574
  self.headers["Location"] = iri_to_uri(redirect_to)
575
- parsed = urlparse(str(redirect_to))
576
- if parsed.scheme and parsed.scheme not in self.allowed_schemes:
577
- raise DisallowedRedirect(
578
- f"Unsafe redirect to URL with protocol '{parsed.scheme}'"
579
- )
580
575
 
581
- url = property(lambda self: self.headers["Location"])
576
+ @property
577
+ def url(self):
578
+ return self.headers["Location"]
582
579
 
583
580
  def __repr__(self):
584
581
  return (
@@ -592,18 +589,6 @@ class ResponseRedirectBase(Response):
592
589
  )
593
590
 
594
591
 
595
- class ResponseRedirect(ResponseRedirectBase):
596
- """HTTP 302 response"""
597
-
598
- status_code = 302
599
-
600
-
601
- class ResponsePermanentRedirect(ResponseRedirectBase):
602
- """HTTP 301 response"""
603
-
604
- status_code = 301
605
-
606
-
607
592
  class ResponseNotModified(Response):
608
593
  """HTTP 304 response"""
609
594
 
@@ -1,6 +1,6 @@
1
1
  import re
2
2
 
3
- from plain.http import ResponsePermanentRedirect
3
+ from plain.http import ResponseRedirect
4
4
  from plain.runtime import settings
5
5
 
6
6
 
@@ -33,4 +33,6 @@ class HttpsRedirectMiddleware:
33
33
  and not any(pattern.search(path) for pattern in self.https_redirect_exempt)
34
34
  ):
35
35
  host = self.https_redirect_host or request.get_host()
36
- return ResponsePermanentRedirect(f"https://{host}{request.get_full_path()}")
36
+ return ResponseRedirect(
37
+ f"https://{host}{request.get_full_path()}", status_code=301
38
+ )
@@ -1,4 +1,4 @@
1
- from plain.http import ResponsePermanentRedirect
1
+ from plain.http import ResponseRedirect
2
2
  from plain.runtime import settings
3
3
  from plain.urls import Resolver404, get_resolver
4
4
  from plain.utils.http import escape_leading_slashes
@@ -22,7 +22,9 @@ class RedirectSlashMiddleware:
22
22
  # If the given URL is "Not Found", then check if we should redirect to
23
23
  # a path with a slash appended.
24
24
  if response.status_code == 404 and self.should_redirect_with_slash(request):
25
- return ResponsePermanentRedirect(self.get_full_path_with_slash(request))
25
+ return ResponseRedirect(
26
+ self.get_full_path_with_slash(request), status_code=301
27
+ )
26
28
 
27
29
  return response
28
30
 
plain/logs/README.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  **Logging configuration and utilities.**
4
4
 
5
+ - [Overview](#overview)
6
+ - [`app_logger`](#app_logger)
7
+ - [`app_logger.kv`](#app_loggerkv)
8
+ - [Logging settings](#logging-settings)
9
+
10
+ ## Overview
11
+
5
12
  In Python, configuring logging can be surprisingly complex. For most use cases, Plain provides a [default configuration](./configure.py) that "just works".
6
13
 
7
14
  By default, both the `plain` and `app` loggers are set to the `INFO` level. You can quickly change this by using the `PLAIN_LOG_LEVEL` and `APP_LOG_LEVEL` environment variables.
plain/packages/README.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  **Install Python modules as Plain packages.**
4
4
 
5
+ - [Overview](#overview)
6
+ - [Creating app packages](#creating-app-packages)
7
+ - [Package settings](#package-settings)
8
+ - [Package `ready()` method](#package-ready-method)
9
+
10
+ ## Overview
11
+
5
12
  Most Python modules that you use with Plain will need to be installed via `settings.INSTALLED_PACKAGES`. This is what enables template detection, per-package settings, database models, and other features.
6
13
 
7
14
  A package can either be a local module inside of your `app`, or a third-party package from PyPI.
plain/preflight/README.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  **System checks for Plain applications.**
4
4
 
5
+ - [Overview](#overview)
6
+ - [Development](#development)
7
+ - [Deployment](#deployment)
8
+ - [Custom preflight checks](#custom-preflight-checks)
9
+ - [Silencing preflight checks](#silencing-preflight-checks)
10
+
11
+ ## Overview
12
+
5
13
  Preflight checks help identify issues with your settings or environment before running your application.
6
14
 
7
15
  ```bash
plain/runtime/README.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  **Access app and package settings at runtime.**
4
4
 
5
+ - [Overview](#overview)
6
+ - [Environment variables](#environment-variables)
7
+ - [.env files](#env-files)
8
+ - [Package settings](#package-settings)
9
+ - [Custom app-wide settings](#custom-app-wide-settings)
10
+ - [Using Plain in other environments](#using-plain-in-other-environments)
11
+
12
+ ## Overview
13
+
5
14
  Plain is configured by "settings", which are ultimately just Python variables. Most settings have default values which can be overidden either by your `app/settings.py` file or by environment variables.
6
15
 
7
16
  ```python
plain/signals/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  **Run code when certain events happen.**
4
4
 
5
+ - [Overview](#overview)
6
+
7
+ ## Overview
8
+
5
9
  ```python
6
10
  from plain.signals import request_finished
7
11
 
plain/templates/README.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  **Render HTML templates using Jinja.**
4
4
 
5
+ - [Overview](#overview)
6
+ - [Template files](#template-files)
7
+ - [Extending Jinja](#extending-jinja)
8
+ - [Rendering templates manually](#rendering-templates-manually)
9
+
10
+ ## Overview
11
+
5
12
  Plain uses Jinja2 for template rendering. You can refer to the [Jinja documentation](https://jinja.palletsprojects.com/en/stable/api/) for all of the features available.
6
13
 
7
14
  In general, templates are used in combination with `TemplateView` or a more specific subclass of it.
@@ -37,7 +44,7 @@ All template directories are "merged" together, allowing you to override templat
37
44
 
38
45
  ## Extending Jinja
39
46
 
40
- Plain includes a set of default [global variables](jinja/globals.py) and [filters](jinja/filters.py). You can register additional extensions, globals, or filters either in a package or in your app. Typically this will be in `app/templates.py` or `<pkg>/templates.py`, which are automatically imported.
47
+ Plain includes a set of default [global variables](./jinja/globals.py) and [filters](./jinja/filters.py). You can register additional extensions, globals, or filters either in a package or in your app. Typically this will be in `app/templates.py` or `<pkg>/templates.py`, which are automatically imported.
41
48
 
42
49
  ```python
43
50
  # app/templates.py
@@ -71,7 +78,7 @@ class HTMXJSExtension(InclusionTagExtension):
71
78
 
72
79
  ## Rendering templates manually
73
80
 
74
- Templates can also be rendered manually using the [`Template` class](core.py#Template).
81
+ Templates can also be rendered manually using the [`Template` class](./core.py#Template).
75
82
 
76
83
  ```python
77
84
  from plain.templates import Template
plain/test/README.md CHANGED
@@ -2,7 +2,11 @@
2
2
 
3
3
  **Testing utilities for Plain.**
4
4
 
5
- This module provides a the [`Client`](client.py#Client) and [`RequestFactory`](client.py#RequestFactory) classes to facilitate testing requests and responses.
5
+ - [Overview](#overview)
6
+
7
+ ## Overview
8
+
9
+ This module provides the [`Client`](client.py#Client) and [`RequestFactory`](client.py#RequestFactory) classes to facilitate testing requests and responses.
6
10
 
7
11
  ```python
8
12
  from plain.test import Client
plain/urls/README.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  **Route requests to views.**
4
4
 
5
+ - [Overview](#overview)
6
+ - [Reversing URLs](#reversing-urls)
7
+ - [URL args and kwargs](#url-args-and-kwargs)
8
+ - [Package routers](#package-routers)
9
+
10
+ ## Overview
11
+
5
12
  URLs are typically the "entrypoint" to your app. Virtually all request handling up to this point happens behind the scenes, and then you decide how to route specific URL patterns to your views.
6
13
 
7
14
  The `URLS_ROUTER` is the primary router that handles all incoming requests. It is defined in your `app/settings.py` file. This will typically point to a `Router` class in your `app.urls` module.
plain/utils/README.md CHANGED
@@ -1,5 +1,9 @@
1
- # Utilities
1
+ # Utils
2
2
 
3
3
  **Various utilities for text manipulation, parsing, dates, and more.**
4
4
 
5
+ - [Overview](#overview)
6
+
7
+ ## Overview
8
+
5
9
  The utilities aren't going to be documented in detail here. Take a look at the source code for more information.
plain/views/README.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  **Take a request, return a response.**
4
4
 
5
+ - [Overview](#overview)
6
+ - [HTTP methods -> class methods](#http-methods---class-methods)
7
+ - [Return types](#return-types)
8
+ - [Template views](#template-views)
9
+ - [Form views](#form-views)
10
+ - [Object views](#object-views)
11
+ - [Response exceptions](#response-exceptions)
12
+ - [Error views](#error-views)
13
+ - [Redirect views](#redirect-views)
14
+ - [CSRF exempt views](#csrf-exempt-views)
15
+
16
+ ## Overview
17
+
5
18
  Plain views are written as classes,
6
19
  with a straightforward API that keeps simple views simple,
7
20
  but gives you the power of a full class to handle more complex cases.
@@ -17,7 +30,7 @@ class ExampleView(View):
17
30
 
18
31
  ## HTTP methods -> class methods
19
32
 
20
- The HTTP methd of the request will map to a class method of the same name on the view.
33
+ The HTTP method of the request will map to a class method of the same name on the view.
21
34
 
22
35
  If a request comes in and there isn't a matching method on the view,
23
36
  Plain will return a `405 Method Not Allowed` response.
@@ -46,7 +59,7 @@ class ExampleView(View):
46
59
  pass
47
60
  ```
48
61
 
49
- The [base `View` class](./base.py) defines default `options` and `head` behavior,
62
+ The [base `View` class](./base.py#View) defines default `options` and `head` behavior,
50
63
  but you can override these too.
51
64
 
52
65
  ## Return types
@@ -87,9 +100,9 @@ class ExampleView(TemplateView):
87
100
  return context
88
101
  ```
89
102
 
90
- The `TemplateView` is also the base class for _most_ of the other built-in view classes.
103
+ The [`TemplateView`](./templates.py#TemplateView) is also the base class for _most_ of the other built-in view classes.
91
104
 
92
- Template views that don't need any custom context can use `TemplateView.as_view()` direcly in the URL route.
105
+ Template views that don't need any custom context can use `TemplateView.as_view()` directly in the URL route.
93
106
 
94
107
  ```python
95
108
  from plain.views import TemplateView
@@ -104,7 +117,7 @@ class AppRouter(Router):
104
117
 
105
118
  ## Form views
106
119
 
107
- Standard [forms](../forms) can be rendered and processed by a `FormView`.
120
+ Standard [forms](../forms) can be rendered and processed by a [`FormView`](./forms.py#FormView).
108
121
 
109
122
  ```python
110
123
  from plain.views import FormView
@@ -218,7 +231,7 @@ class ExampleListView(ListView):
218
231
  ## Response exceptions
219
232
 
220
233
  At any point in the request handling,
221
- a view can raise a `ResponseException` to immediately exit and return the wrapped response.
234
+ a view can raise a [`ResponseException`](./exceptions.py#ResponseException) to immediately exit and return the wrapped response.
222
235
 
223
236
  This isn't always necessary, but can be useful for raising rate limits or authorization errors when you're a couple layers deep in the view handling or helper functions.
224
237
 
plain/views/redirect.py CHANGED
@@ -1,29 +1,29 @@
1
- import logging
2
-
3
- from plain.http import (
4
- ResponseGone,
5
- ResponsePermanentRedirect,
6
- ResponseRedirect,
7
- )
1
+ from plain.http import ResponseRedirect
8
2
  from plain.urls import reverse
9
3
 
10
4
  from .base import View
11
5
 
12
- logger = logging.getLogger("plain.request")
13
-
14
6
 
15
7
  class RedirectView(View):
16
8
  """Provide a redirect on any GET request."""
17
9
 
18
- permanent = False
10
+ status_code = 302
19
11
  url: str | None = None
20
- pattern_name: str | None = None
21
- query_string = False
12
+ url_name: str | None = None
13
+ preserve_query_params = False
22
14
 
23
- def __init__(self, url=None, permanent=None):
24
- # Allow url and permanent to be set in RedirectView.as_view(url="...", permanent=True)
15
+ def __init__(
16
+ self, url=None, status_code=None, url_name=None, preserve_query_params=None
17
+ ):
18
+ # Allow attributes to be set in RedirectView.as_view(url="...", status_code=301, etc.)
25
19
  self.url = url or self.url
26
- self.permanent = permanent if permanent is not None else self.permanent
20
+ self.status_code = status_code if status_code is not None else self.status_code
21
+ self.url_name = url_name or self.url_name
22
+ self.preserve_query_params = (
23
+ preserve_query_params
24
+ if preserve_query_params is not None
25
+ else self.preserve_query_params
26
+ )
27
27
 
28
28
  def get_redirect_url(self):
29
29
  """
@@ -33,30 +33,19 @@ class RedirectView(View):
33
33
  """
34
34
  if self.url:
35
35
  url = self.url % self.url_kwargs
36
- elif self.pattern_name:
37
- url = reverse(self.pattern_name, *self.url_args, **self.url_kwargs)
36
+ elif self.url_name:
37
+ url = reverse(self.url_name, *self.url_args, **self.url_kwargs)
38
38
  else:
39
- return None
39
+ raise ValueError("RedirectView requires either url or url_name to be set")
40
40
 
41
41
  args = self.request.meta.get("QUERY_STRING", "")
42
- if args and self.query_string:
42
+ if args and self.preserve_query_params:
43
43
  url = f"{url}?{args}"
44
44
  return url
45
45
 
46
46
  def get(self):
47
47
  url = self.get_redirect_url()
48
- if url:
49
- if self.permanent:
50
- return ResponsePermanentRedirect(url)
51
- else:
52
- return ResponseRedirect(url)
53
- else:
54
- logger.warning(
55
- "Gone: %s",
56
- self.request.path,
57
- extra={"status_code": 410, "request": self.request},
58
- )
59
- return ResponseGone()
48
+ return ResponseRedirect(url, status_code=self.status_code)
60
49
 
61
50
  def head(self):
62
51
  return self.get()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain
3
- Version: 0.56.0
3
+ Version: 0.57.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,24 +1,24 @@
1
- plain/CHANGELOG.md,sha256=dmnqSRfQaYy37mP_cro0A_Z0FFT8XFwk441-ufnNqSk,6813
1
+ plain/CHANGELOG.md,sha256=S6LqQuC4QwAYLG_Txkz7OyIT8FgyIFXD_3fX6WP7w3I,8219
2
2
  plain/README.md,sha256=5BJyKhf0TDanWVbOQyZ3zsi5Lov9xk-LlJYCDWofM6Y,4078
3
3
  plain/__main__.py,sha256=GK39854Lc_LO_JP8DzY9Y2MIQ4cQEl7SXFJy244-lC8,110
4
4
  plain/debug.py,sha256=XdjnXcbPGsi0J2SpHGaLthhYU5AjhBlkHdemaP4sbYY,758
5
- plain/exceptions.py,sha256=Z9cbPE5im_Y-bjVq8cqC85gBoqOr80rLFG5wTKixrwE,5894
5
+ plain/exceptions.py,sha256=bx2_d1udQrGfw-F_k5GmXatgW1ecWSsWnX6jBoD0CH8,5786
6
6
  plain/json.py,sha256=McJdsbMT1sYwkGRG--f2NSZz0hVXPMix9x3nKaaak2o,1262
7
7
  plain/paginator.py,sha256=iXiOyt2r_YwNrkqCRlaU7V-M_BKaaQ8XZElUBVa6yeU,5844
8
8
  plain/signing.py,sha256=r2KvCOxkrSWCULFxYa9BHYx3L3a2oLq8RDnq_92inTw,8207
9
9
  plain/validators.py,sha256=TePzFHzwR4JXUAZ_Y2vC6mkKgVxHX3QBXI6Oex0rV8c,19236
10
10
  plain/wsgi.py,sha256=R6k5FiAElvGDApEbMPTT0MPqSD7n2e2Az5chQqJZU0I,236
11
- plain/assets/README.md,sha256=8OW6y4rs0PqGvcbrndPJjOndcDUQUAgnO-Hj_PDHpWI,4151
11
+ plain/assets/README.md,sha256=iRZHHoXZCEFooXoDYSomF12XTcDFl7oNbRHpAFwxTM8,4349
12
12
  plain/assets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  plain/assets/compile.py,sha256=DT85ygnNcY2_7VeozdsQlBvA-DzV7enUIMO_igJ1PjY,3296
14
14
  plain/assets/finders.py,sha256=2k8QZAbfUbc1LykxbzdazTSB6xNxJZnsZaGhWbSFZZs,1452
15
15
  plain/assets/fingerprints.py,sha256=D-x0o49sUuWfx86BssDyo87yJCjWrV0go6JGPagvMAE,1365
16
16
  plain/assets/urls.py,sha256=zQUA8bAlh9qVqskPJJrqWd9DjvetOi5jPSqy4vUX0J4,1161
17
17
  plain/assets/views.py,sha256=T_0Qh6v9qBerEBYbhToigwOzsij-x1z_R-1zETQcIh0,9447
18
- plain/chores/README.md,sha256=Da8Nw8ZF7PlAE_iVb0AqJGbLOu0F6HC0cj1K451KBak,1946
18
+ plain/chores/README.md,sha256=5tIKRLg2I4P-jnfoizRn4fxtqQrjFEimkJ2ckddiGRQ,2056
19
19
  plain/chores/__init__.py,sha256=r9TXtQCH-VbvfnIJ5F8FxgQC35GRWFOfmMZN3q9niLg,67
20
20
  plain/chores/registry.py,sha256=V3WjuekRI22LFvJbqSkUXQtiOtuE2ZK8gKV1TRvxRUI,1866
21
- plain/cli/README.md,sha256=GzBry6mEilhM80SfVUg02ydGwAk0m-s6FAqQR1nRsMM,2022
21
+ plain/cli/README.md,sha256=5C7vsH0ISxu7q5H6buC25MBOILkI_rzdySitswpQgJw,1032
22
22
  plain/cli/__init__.py,sha256=6w9T7K2WrPwh6DcaMb2oNt_CWU6Bc57nUTO2Bt1p38Y,63
23
23
  plain/cli/agent.py,sha256=T3jG9hpbndiBsRYf_MhT3GvHrnpLjCh3tgi4pR6Ipmg,1477
24
24
  plain/cli/build.py,sha256=Lo6AYghJz0DM9fIVUSiBSOKa5vR0XCOxZWEjza6sc8Q,3172
@@ -28,7 +28,7 @@ plain/cli/core.py,sha256=HZZcDVNEMAhantDM4Hnug-SrwU3YgAq1-KDa3_a9-K0,3111
28
28
  plain/cli/docs.py,sha256=MjFIpNc0FsHACi_spPVumXM-oPCi__3U0Jqf41lqjQM,7481
29
29
  plain/cli/formatting.py,sha256=1hZH13y1qwHcU2K2_Na388nw9uvoeQH8LrWL-O9h8Yc,2207
30
30
  plain/cli/help.py,sha256=NefZSEIixrX_WELVSnJDHRpLDWf7_4PXmkkMm3Q2mzo,787
31
- plain/cli/install.py,sha256=k-iR093N_jOKZdWW0qhcb_NAjQUxKdjajlZ2XBIRwM8,2646
31
+ plain/cli/install.py,sha256=wvEc3gLP5tvSb1Xwm2467DCXqCPTWxuzktGnlK94SGg,2784
32
32
  plain/cli/output.py,sha256=Fe3xS6Va4Bi1ZNrqi0nh09THTsdCyMW2b9SPY5I4n-o,1318
33
33
  plain/cli/preflight.py,sha256=8tHBD4L4nPLUKThfaYx3SUZSJzC48oV2m_Hbn6W4ODc,4124
34
34
  plain/cli/print.py,sha256=XraUYrgODOJquIiEv78wSCYGRBplHXtXSS9QtFG5hqY,217
@@ -40,21 +40,21 @@ plain/cli/startup.py,sha256=wLaFuyUb4ewWhtehBCGicrRCXIIGCRbeCT3ce9hUv-A,1022
40
40
  plain/cli/upgrade.py,sha256=f1rL9M285i4D5UKlEk4ijmAUN3mAMfHCrbDPwBf1ePo,5514
41
41
  plain/cli/urls.py,sha256=ghCW36aRszxmTo06A50FIvYopb6kQ07QekkDzM6_A1o,3824
42
42
  plain/cli/utils.py,sha256=VwlIh0z7XxzVV8I3qM2kZo07fkJFPoeeVZa1ODG616k,258
43
- plain/csrf/README.md,sha256=nxCpPk1HF5eAM-7paxg9D-9RVCU9jXsSPAVHkJvA_DU,717
43
+ plain/csrf/README.md,sha256=cTqQ9oOa3BcMRhMPzqhI2wat1ZOS7aQwJTIFArdMTsk,794
44
44
  plain/csrf/middleware.py,sha256=U3B9R7ciO_UAf7O3jdNtVu6QZ_3Yrm8isRdnW6bVKX4,17401
45
45
  plain/csrf/views.py,sha256=HwQqfI6KPelHP9gSXhjfZaTLQic71PKsoZ6DPhr1rKI,572
46
- plain/forms/README.md,sha256=TawBdy1jP0-8HUsfUzd7vvgkwl3EJGejDxFhWR8F-80,2242
46
+ plain/forms/README.md,sha256=SeqRBAPynu-aNR8FPXesOIjPuUi4X1pT_ZlDK4bD7UA,2280
47
47
  plain/forms/__init__.py,sha256=UxqPwB8CiYPCQdHmUc59jadqaXqDmXBH8y4bt9vTPms,226
48
48
  plain/forms/boundfield.py,sha256=LhydhCVR0okrli0-QBMjGjAJ8-06gTCXVEaBZhBouQk,1741
49
49
  plain/forms/exceptions.py,sha256=NYk1wjYDkk-lA_XMJQDItOebQcL_m_r2eNRc2mkLQkg,315
50
50
  plain/forms/fields.py,sha256=OyL4eZIgJ_XMLPHGar17hLepFmwHV-hSnb_n7s18yUU,34709
51
51
  plain/forms/forms.py,sha256=hF7Dl8rEaiBTZhFQyfbh1Zf54BSEka8RYpBiGqkTa8I,10441
52
- plain/http/README.md,sha256=F9wbahgSU3jIDEG14gJjdPJRem4weUNvwnwhb7o3cu0,722
53
- plain/http/__init__.py,sha256=DIsDRbBsCGa4qZgq-fUuQS0kkxfbTU_3KpIM9VvH04w,1067
52
+ plain/http/README.md,sha256=hkjTJJ2_WEGm7vaIxjjNHrzD6EN5VI6pjDJPIR9l1jo,760
53
+ plain/http/__init__.py,sha256=PfmXBIq7onLO_bbOrVdj5rJeHxqJMYqrIobVKupUzUA,1003
54
54
  plain/http/cookie.py,sha256=THd7nOl-2ugeBPKgOhbD87aM2oxUbNH8HWrarUn0fpM,1955
55
55
  plain/http/multipartparser.py,sha256=Z1dFJNAd8N5RHUuF67jh1jBfZOFepORsre_3ee6CgOQ,27266
56
56
  plain/http/request.py,sha256=93b2gqkfEsBczUyP_9vlueVoxyzzfbnJ423PDAk8aHc,26103
57
- plain/http/response.py,sha256=0xUhkTiT6JwohdwA7ymY2vpdCQVl4hnEExjk01LrJbg,23734
57
+ plain/http/response.py,sha256=FM3otFkKEEkAaV_pVB3JUSMhMk7x_zf5JcDWKhOKviM,23223
58
58
  plain/internal/__init__.py,sha256=fVBaYLCXEQc-7riHMSlw3vMTTuF7-0Bj2I8aGzv0o0w,171
59
59
  plain/internal/files/__init__.py,sha256=VctFgox4Q1AWF3klPaoCC5GIw5KeLafYjY5JmN8mAVw,63
60
60
  plain/internal/files/base.py,sha256=2z19tik2_xgXlI6nfVZ4woSF9WB0RSUzsvOfi1Bz8Wg,4113
@@ -70,34 +70,34 @@ plain/internal/handlers/exception.py,sha256=vfha_6-fz6S6VYCP1PMBfue2Gw-_th6jqaTE
70
70
  plain/internal/handlers/wsgi.py,sha256=dgPT29t_F9llB-c5RYU3SHxGuZNaZ83xRjOfuOmtOl8,8209
71
71
  plain/internal/middleware/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
72
72
  plain/internal/middleware/headers.py,sha256=ENIW1Gwat54hv-ejgp2R8QTZm-PlaI7k44WU01YQrNk,964
73
- plain/internal/middleware/https.py,sha256=XpuQK8HicYX1jNanQHqNgyQ9rqe4NLUOZO3ZzKdsP8k,1203
74
- plain/internal/middleware/slash.py,sha256=FMU8b9w0NSx4eJs9Y7Ew6RAoSTbUqe2oOM68kg3wOng,2817
75
- plain/logs/README.md,sha256=wXqqAQym4g6hUiJOothj-t0RacZLf2-o9JskoZhsehA,1276
73
+ plain/internal/middleware/https.py,sha256=HcOEWOpoblrFGbrsNOtAj8aEK1sgWbKcPqwEJoDw0no,1232
74
+ plain/internal/middleware/slash.py,sha256=JWcIfGbXEKH00I7STq1AMdHhFGmQHC8lkKENa6280ko,2846
75
+ plain/logs/README.md,sha256=ON6Zylg_WA_V7QiIbRY7sgsl2nfG7KFzIbxK2x3rPuc,1419
76
76
  plain/logs/__init__.py,sha256=rASvo4qFBDIHfkACmGLNGa6lRGbG9PbNjW6FmBt95ys,168
77
77
  plain/logs/configure.py,sha256=2kDJ-WPv3PV4H46mz5tTfzIa2kvN6cjVlb3t-AEbMyk,1307
78
78
  plain/logs/loggers.py,sha256=iz9SYcwP9w5QAuwpULl48SFkVyJuuMoQ_fdLgdCHpNg,2121
79
79
  plain/logs/utils.py,sha256=9UzdCCQXJinGDs71Ngw297mlWkhgZStSd67ya4NOW98,1257
80
- plain/packages/README.md,sha256=nU2GcoCGmzmVOYRIeF8hp40aza0FF1ckvGqD5jIxocs,2494
80
+ plain/packages/README.md,sha256=iNqMtwFDVNf2TqKUzLKQW5Y4_GsssmdB4cVerzu27Ro,2674
81
81
  plain/packages/__init__.py,sha256=OpQny0xLplPdPpozVUUkrW2gB-IIYyDT1b4zMzOcCC4,160
82
82
  plain/packages/config.py,sha256=2U7b1cp_kqIuLdSeHGCLrSUV77TdfGRsww3PcXOazaA,2910
83
83
  plain/packages/registry.py,sha256=6ogeHZ8t3kBSoLoI7998r0kIbkEPhLGn-7yi-1qVjVo,7969
84
- plain/preflight/README.md,sha256=9fE0Ql2JNd3CI420eg1sP_xmaim-6Ejlzi_hfk3tVS0,1511
84
+ plain/preflight/README.md,sha256=Ae7ujHmsJhTpRGX0pghBwGD2CG7SIxngenyb5CSbc2M,1721
85
85
  plain/preflight/__init__.py,sha256=j4-yPnrM5hmjumrdkBLOQjFHzRHpA6wCjiFpMNBjIqY,619
86
86
  plain/preflight/files.py,sha256=D_pBSwRXpXy2-3FWywweozuxrhIaR8w5hpPA2d6XMPs,522
87
87
  plain/preflight/messages.py,sha256=B6VyXzu7HTJHaPVK4G1L_1HVHG87CT7JPtcDk8QYSeE,2322
88
88
  plain/preflight/registry.py,sha256=vcqzaE1MIneNL_ydKPy_1zrSThnzsrWARSClLCJ-4b8,2331
89
89
  plain/preflight/security.py,sha256=oxUZBp2M0bpBfUoLYepIxoex2Y90nyjlrL8XU8UTHYY,2438
90
90
  plain/preflight/urls.py,sha256=cQ-WnFa_5oztpKdtwhuIGb7pXEml__bHsjs1SWO2YNI,1468
91
- plain/runtime/README.md,sha256=1h30eRTg5-lY-G7GF_4TdUiUcOLVzKR15mSrmyeU8eI,4584
91
+ plain/runtime/README.md,sha256=sTqXXJkckwqkk9O06XMMSNRokAYjrZBnB50JD36BsYI,4873
92
92
  plain/runtime/__init__.py,sha256=8GtvKROf3HUCtneDYXTbEioPcCtwnV76dP57n2PnjuE,2343
93
93
  plain/runtime/global_settings.py,sha256=MpJ6vtBMO2EYALaKXrtgcGoxLh9Y549zwwErC5D5K7I,5343
94
94
  plain/runtime/user_settings.py,sha256=OzMiEkE6ZQ50nxd1WIqirXPiNuMAQULklYHEzgzLWgA,11027
95
- plain/signals/README.md,sha256=FInfJXdVQkb7u93PvD8XgPbz_f6m0l2xIu_4PyttV1E,234
95
+ plain/signals/README.md,sha256=XefXqROlDhzw7Z5l_nx6Mhq6n9jjQ-ECGbH0vvhKWYg,272
96
96
  plain/signals/__init__.py,sha256=eAs0kLqptuP6I31dWXeAqRNji3svplpAV4Ez6ktjwXM,131
97
97
  plain/signals/dispatch/__init__.py,sha256=FzEygqV9HsM6gopio7O2Oh_X230nA4d5Q9s0sUjMq0E,292
98
98
  plain/signals/dispatch/dispatcher.py,sha256=VxSlqn9PCOTghPPJLOqZPs6FNQZfV2BJpMfFMSg6Dtc,11531
99
99
  plain/signals/dispatch/license.txt,sha256=o9EhDhsC4Q5HbmD-IfNGVTEkXtNE33r5rIt3lleJ8gc,1727
100
- plain/templates/README.md,sha256=G43IdTRJX6mfxsExUTQf9QAwPeHLsDgY7PvKXdx4l6g,2432
100
+ plain/templates/README.md,sha256=3eCnQvgLNAnbJENxCWevtiwVpop3_sfJMBWUVGQP2qQ,2614
101
101
  plain/templates/__init__.py,sha256=bX76FakE9T7mfK3N0deN85HlwHNQpeigytSC9Z8LcOs,451
102
102
  plain/templates/core.py,sha256=mbcH0yTeFOI3XOg9dYSroXRIcdv9sETEy4HzY-ugwco,1258
103
103
  plain/templates/jinja/__init__.py,sha256=xvYif0feMYR9pWjN0czthq2dk3qI4D5UQjgj9yp4dNA,2776
@@ -105,12 +105,12 @@ plain/templates/jinja/environments.py,sha256=9plifzvQj--aTN1cCpJ2WdzQxZJpzB8S_4h
105
105
  plain/templates/jinja/extensions.py,sha256=AEmmmHDbdRW8fhjYDzq9eSSNbp9WHsXenD8tPthjc0s,1351
106
106
  plain/templates/jinja/filters.py,sha256=ft5XUr4OLeQayn-MSxrycpFLyyN_yEo7j5WhWMwpTOs,1445
107
107
  plain/templates/jinja/globals.py,sha256=VMpuMZvwWOmb5MbzKK-ox-QEX_WSsXFxq0mm8biJgaU,558
108
- plain/test/README.md,sha256=fv4YzziU2QxgcNHSgv7aDUO45sDOofVuCNrV1NPbWzo,1106
108
+ plain/test/README.md,sha256=wem0myAd-ij74nNV1MB9g4iH6FZUgii7-_euRq45oHs,1142
109
109
  plain/test/__init__.py,sha256=MhNHtp7MYBl9kq-pMRGY11kJ6kU1I6vOkjNkit1TYRg,94
110
110
  plain/test/client.py,sha256=XjLjkeDl1rQRaFoeiCvvD5GXfxIxpuic2OnxjoX05tA,25573
111
111
  plain/test/encoding.py,sha256=YJBOIE-BQRA5yl4zHnQy-9l67mJDTFmfy1DQXK0Wk-Q,3199
112
112
  plain/test/exceptions.py,sha256=b-GHicg87Gh73W3g8QGWuSHi9PrQFVsxgWvEXDLt8gQ,290
113
- plain/urls/README.md,sha256=ijFGmrkUY9buBqO_i1GZaN3V55vl9xwEADtHOx_ZHPY,3724
113
+ plain/urls/README.md,sha256=026RkCK6I0GdqK3RE2QBLcCLIsiwtyKxgI2F0KBX95E,3882
114
114
  plain/urls/__init__.py,sha256=DFO2OL1IllHW5USPIb5uYvvzf_G-Bl0Qu1zrRLHmWyM,542
115
115
  plain/urls/converters.py,sha256=s2JZVOdzZC16lgobsI93hygcdH5L0Kj4742WEkXsVcs,1193
116
116
  plain/urls/exceptions.py,sha256=q4iPh3Aa-zHbA-tw8v6WyX1J1n5WdAady2xvxFuyXB0,114
@@ -118,7 +118,7 @@ plain/urls/patterns.py,sha256=FPWzh2vStzrCqQDkXxjbA58_OMbomOIuYgEOKaEW924,8259
118
118
  plain/urls/resolvers.py,sha256=sZsFQRPlPkogXIVSctZBXJaG0spJzuoJBmtOEZwIXXY,12630
119
119
  plain/urls/routers.py,sha256=B1fX-FQTxmr-b_YeHQUMPuilLVqOi6-RqgPgu6MtFDY,2831
120
120
  plain/urls/utils.py,sha256=lKxTX_A3XJpIH7FjlNYju108stY6-8Sw2uVdiSsxOKQ,1249
121
- plain/utils/README.md,sha256=hRRkcg4CxMX-zz8d4Bn6V2uJr_VKgTLurc1jY7QlEx8,198
121
+ plain/utils/README.md,sha256=3RTH9t4SBLkYLMlnhpWwp72IjgQhOjYYxpT1gHwRUdE,232
122
122
  plain/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
123
123
  plain/utils/cache.py,sha256=iuvOTIfI1s857iVOAPNLK5lkzlrl0fIiBYaiUXWQu40,5303
124
124
  plain/utils/crypto.py,sha256=zFDydnaqNMGYFHUc-CAn8f93685a17BhGusAcITH1lI,2662
@@ -142,7 +142,7 @@ plain/utils/text.py,sha256=42hJv06sadbWfsaAHNhqCQaP1W9qZ69trWDTS-Xva7k,9496
142
142
  plain/utils/timesince.py,sha256=a_-ZoPK_s3Pt998CW4rWp0clZ1XyK2x04hCqak2giII,5928
143
143
  plain/utils/timezone.py,sha256=6u0sE-9RVp0_OCe0Y1KiYYQoq5THWLokZFQYY8jf78g,6221
144
144
  plain/utils/tree.py,sha256=wdWzmfsgc26YDF2wxhAY3yVxXTixQYqYDKE9mL3L3ZY,4383
145
- plain/views/README.md,sha256=iMr_rvag63L0M6rDDHzXEF1dGl5eUQj_0vHwrsgKwgU,6762
145
+ plain/views/README.md,sha256=wKwC6pgxUyIZdCZq5roPpzbGa0Y-tR7mPifr5z659Uk,7245
146
146
  plain/views/__init__.py,sha256=a-N1nkklVohJTtz0yD1MMaS0g66HviEjsKydNVVjvVc,392
147
147
  plain/views/base.py,sha256=CC9UvMZeAjVvi90vGjoZzsQ0jnhbg3-7qCKQ8-Pb6cg,4184
148
148
  plain/views/csrf.py,sha256=7q6l5xzLWhRnMY64aNj0hR6G-3pxI2yhRwG6k_5j00E,144
@@ -150,10 +150,10 @@ plain/views/errors.py,sha256=jbNCJIzowwCsEvqyJ3opMeZpPDqTyhtrbqb0VnAm2HE,1263
150
150
  plain/views/exceptions.py,sha256=b4euI49ZUKS9O8AGAcFfiDpstzkRAuuj_uYQXzWNHME,138
151
151
  plain/views/forms.py,sha256=ESZOXuo6IeYixp1RZvPb94KplkowRiwO2eGJCM6zJI0,2400
152
152
  plain/views/objects.py,sha256=GGbcfg_9fPZ-PiaBwIHG2e__8GfWDR7JQtQ15wTyiHg,5970
153
- plain/views/redirect.py,sha256=daq2cQIkdDF78bt43sjuZxRAyJm_t_SKw6tyPmiXPIc,1985
153
+ plain/views/redirect.py,sha256=Xpb3cB7nZYvKgkNqcAxf9Jwm2SWcQ0u2xz4oO5M3vP8,1909
154
154
  plain/views/templates.py,sha256=ivkI7LU7BXDQ0d4Geab96Is4-Cp03KbIntXRT1J8e6I,2139
155
- plain-0.56.0.dist-info/METADATA,sha256=OwAwfG-QBAodVhao1ISXlTC1d-mpaCfrNXPJ05X8qcE,4488
156
- plain-0.56.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
157
- plain-0.56.0.dist-info/entry_points.txt,sha256=nn4uKTRRZuEKOJv3810s3jtSMW0Gew7XDYiKIvBRR6M,93
158
- plain-0.56.0.dist-info/licenses/LICENSE,sha256=m0D5O7QoH9l5Vz_rrX_9r-C8d9UNr_ciK6Qwac7o6yo,3175
159
- plain-0.56.0.dist-info/RECORD,,
155
+ plain-0.57.0.dist-info/METADATA,sha256=9lvnS7TXZ1hqmYFkuMUTtafl0v4nmaTTdI0zh9-4kPU,4488
156
+ plain-0.57.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
157
+ plain-0.57.0.dist-info/entry_points.txt,sha256=nn4uKTRRZuEKOJv3810s3jtSMW0Gew7XDYiKIvBRR6M,93
158
+ plain-0.57.0.dist-info/licenses/LICENSE,sha256=m0D5O7QoH9l5Vz_rrX_9r-C8d9UNr_ciK6Qwac7o6yo,3175
159
+ plain-0.57.0.dist-info/RECORD,,
File without changes