plain.redirection 0.34.0__tar.gz → 0.35.0__tar.gz

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.
Files changed (19) hide show
  1. {plain_redirection-0.34.0 → plain_redirection-0.35.0}/PKG-INFO +1 -1
  2. {plain_redirection-0.34.0 → plain_redirection-0.35.0}/plain/redirection/CHANGELOG.md +11 -0
  3. {plain_redirection-0.34.0 → plain_redirection-0.35.0}/plain/redirection/migrations/0001_initial.py +6 -6
  4. {plain_redirection-0.34.0 → plain_redirection-0.35.0}/plain/redirection/models.py +6 -6
  5. {plain_redirection-0.34.0 → plain_redirection-0.35.0}/pyproject.toml +1 -1
  6. {plain_redirection-0.34.0 → plain_redirection-0.35.0}/.gitignore +0 -0
  7. {plain_redirection-0.34.0 → plain_redirection-0.35.0}/LICENSE +0 -0
  8. {plain_redirection-0.34.0 → plain_redirection-0.35.0}/README.md +0 -0
  9. {plain_redirection-0.34.0 → plain_redirection-0.35.0}/plain/redirection/README.md +0 -0
  10. {plain_redirection-0.34.0 → plain_redirection-0.35.0}/plain/redirection/__init__.py +0 -0
  11. {plain_redirection-0.34.0 → plain_redirection-0.35.0}/plain/redirection/admin.py +0 -0
  12. {plain_redirection-0.34.0 → plain_redirection-0.35.0}/plain/redirection/chores.py +0 -0
  13. {plain_redirection-0.34.0 → plain_redirection-0.35.0}/plain/redirection/config.py +0 -0
  14. {plain_redirection-0.34.0 → plain_redirection-0.35.0}/plain/redirection/default_settings.py +0 -0
  15. {plain_redirection-0.34.0 → plain_redirection-0.35.0}/plain/redirection/middleware.py +0 -0
  16. {plain_redirection-0.34.0 → plain_redirection-0.35.0}/plain/redirection/migrations/0002_rename_plainredire_created_d5f0c7_idx_plainredirection_notfoundlog_created_at_idx_and_more.py +0 -0
  17. {plain_redirection-0.34.0 → plain_redirection-0.35.0}/plain/redirection/migrations/0003_redirectlog_plainredirection_redirectlog_redirect_id_idx.py +0 -0
  18. {plain_redirection-0.34.0 → plain_redirection-0.35.0}/plain/redirection/migrations/__init__.py +0 -0
  19. {plain_redirection-0.34.0 → plain_redirection-0.35.0}/plain/redirection/templates/admin/plainredirection/redirect_form.html +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.redirection
3
- Version: 0.34.0
3
+ Version: 0.35.0
4
4
  Summary: A flexible URL redirection system with admin interface and logging.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-Expression: BSD-3-Clause
@@ -1,5 +1,16 @@
1
1
  # plain-redirection changelog
2
2
 
3
+ ## [0.35.0](https://github.com/dropseed/plain/releases/plain-redirection@0.35.0) (2026-03-28)
4
+
5
+ ### What's changed
6
+
7
+ - Replaced `CharField` with `TextField` in models and migration files to match plain-postgres 0.90.0 ([5062ee4dd1fd](https://github.com/dropseed/plain/commit/5062ee4dd1fd))
8
+
9
+ ### Upgrade instructions
10
+
11
+ - Requires `plain-postgres>=0.90.0`
12
+ - Replace `CharField` with `TextField` in migration files that reference this package's models
13
+
3
14
  ## [0.34.0](https://github.com/dropseed/plain/releases/plain-redirection@0.34.0) (2026-03-25)
4
15
 
5
16
  ### What's changed
@@ -15,8 +15,8 @@ class Migration(migrations.Migration):
15
15
  name="Redirect",
16
16
  fields=[
17
17
  ("id", postgres.PrimaryKeyField()),
18
- ("from_pattern", postgres.CharField(max_length=255)),
19
- ("to_pattern", postgres.CharField(max_length=255)),
18
+ ("from_pattern", postgres.TextField(max_length=255)),
19
+ ("to_pattern", postgres.TextField(max_length=255)),
20
20
  ("http_status", postgres.PositiveSmallIntegerField(default=301)),
21
21
  ("created_at", postgres.DateTimeField(auto_now_add=True)),
22
22
  ("updated_at", postgres.DateTimeField(auto_now=True)),
@@ -36,8 +36,8 @@ class Migration(migrations.Migration):
36
36
  ("to_url", postgres.URLField(max_length=512)),
37
37
  ("http_status", postgres.PositiveSmallIntegerField(default=301)),
38
38
  ("ip_address", postgres.GenericIPAddressField()),
39
- ("user_agent", postgres.CharField(max_length=512, required=False)),
40
- ("referrer", postgres.CharField(max_length=512, required=False)),
39
+ ("user_agent", postgres.TextField(max_length=512, required=False)),
40
+ ("referrer", postgres.TextField(max_length=512, required=False)),
41
41
  ("created_at", postgres.DateTimeField(auto_now_add=True)),
42
42
  ],
43
43
  options={
@@ -50,8 +50,8 @@ class Migration(migrations.Migration):
50
50
  ("id", postgres.PrimaryKeyField()),
51
51
  ("url", postgres.URLField(max_length=512)),
52
52
  ("ip_address", postgres.GenericIPAddressField()),
53
- ("user_agent", postgres.CharField(max_length=512, required=False)),
54
- ("referrer", postgres.CharField(max_length=512, required=False)),
53
+ ("user_agent", postgres.TextField(max_length=512, required=False)),
54
+ ("referrer", postgres.TextField(max_length=512, required=False)),
55
55
  ("created_at", postgres.DateTimeField(auto_now_add=True)),
56
56
  ],
57
57
  options={
@@ -15,8 +15,8 @@ __all__ = ["NotFoundLog", "Redirect", "RedirectLog"]
15
15
 
16
16
  @postgres.register_model
17
17
  class Redirect(postgres.Model):
18
- from_pattern: str = types.CharField(max_length=255)
19
- to_pattern: str = types.CharField(max_length=255)
18
+ from_pattern: str = types.TextField(max_length=255)
19
+ to_pattern: str = types.TextField(max_length=255)
20
20
  http_status: int = types.PositiveSmallIntegerField(
21
21
  default=301
22
22
  ) # Default to permanent - could be choices?
@@ -95,8 +95,8 @@ class RedirectLog(postgres.Model):
95
95
 
96
96
  # Request metadata
97
97
  ip_address: str = types.GenericIPAddressField()
98
- user_agent: str = types.CharField(required=False, max_length=512)
99
- referrer: str = types.CharField(required=False, max_length=512)
98
+ user_agent: str = types.TextField(required=False, max_length=512)
99
+ referrer: str = types.TextField(required=False, max_length=512)
100
100
 
101
101
  created_at: datetime = types.DateTimeField(auto_now_add=True)
102
102
 
@@ -144,8 +144,8 @@ class NotFoundLog(postgres.Model):
144
144
 
145
145
  # Request metadata
146
146
  ip_address: str = types.GenericIPAddressField()
147
- user_agent: str = types.CharField(required=False, max_length=512)
148
- referrer: str = types.CharField(required=False, max_length=512)
147
+ user_agent: str = types.TextField(required=False, max_length=512)
148
+ referrer: str = types.TextField(required=False, max_length=512)
149
149
 
150
150
  created_at: datetime = types.DateTimeField(auto_now_add=True)
151
151
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "plain.redirection"
3
- version = "0.34.0"
3
+ version = "0.35.0"
4
4
  description = "A flexible URL redirection system with admin interface and logging."
5
5
  authors = [{ name = "Dave Gaeddert", email = "dave.gaeddert@dropseed.dev" }]
6
6
  readme = "README.md"