Increase target url allowed size
This commit is contained in:
parent
e3d5c45eb0
commit
55fa521486
3 changed files with 27 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
|||
exclude: \.min\.(js|css)(\.map)?$
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.1.0
|
||||
rev: v4.3.0
|
||||
hooks:
|
||||
- id: check-ast
|
||||
- id: check-json
|
||||
|
@ -24,26 +24,26 @@ repos:
|
|||
hooks:
|
||||
- id: isort
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 22.1.0
|
||||
rev: 22.6.0
|
||||
hooks:
|
||||
- id: black
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v2.31.1
|
||||
rev: v2.34.0
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
args:
|
||||
- --py310-plus
|
||||
- repo: https://github.com/adamchainz/django-upgrade
|
||||
rev: 1.4.0
|
||||
rev: 1.7.0
|
||||
hooks:
|
||||
- id: django-upgrade
|
||||
args: [--target-version, "4.0"]
|
||||
- repo: https://github.com/rtts/djhtml
|
||||
rev: v1.5.0
|
||||
rev: v1.5.1
|
||||
hooks:
|
||||
- id: djhtml
|
||||
- repo: https://github.com/flakeheaven/flakeheaven
|
||||
rev: 0.11.0
|
||||
rev: 2.0.0
|
||||
hooks:
|
||||
- id: flakeheaven
|
||||
additional_dependencies:
|
||||
|
@ -57,12 +57,12 @@ repos:
|
|||
- flake8-noqa
|
||||
- pep8-naming
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: v2.6.1
|
||||
rev: v2.7.1
|
||||
hooks:
|
||||
- id: prettier
|
||||
types_or: [javascript, css]
|
||||
- repo: https://github.com/pre-commit/mirrors-eslint
|
||||
rev: v8.11.0
|
||||
rev: v8.18.0
|
||||
hooks:
|
||||
- id: eslint
|
||||
types_or: [javascript, css]
|
||||
|
|
18
src/redirect/migrations/0006_alter_redirect_target_url.py
Normal file
18
src/redirect/migrations/0006_alter_redirect_target_url.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 3.2.11 on 2022-06-30 06:27
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("redirect", "0005_auto_20220227_2307"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="redirect",
|
||||
name="target_url",
|
||||
field=models.URLField(max_length=50000),
|
||||
),
|
||||
]
|
|
@ -6,7 +6,7 @@ from django.urls import reverse
|
|||
|
||||
class Redirect(models.Model):
|
||||
short_code = models.CharField(max_length=250, blank=False, null=False, unique=True)
|
||||
target_url = models.URLField(max_length=2000)
|
||||
target_url = models.URLField(max_length=50_000)
|
||||
owner = models.ForeignKey(
|
||||
settings.AUTH_USER_MODEL,
|
||||
on_delete=models.SET_NULL,
|
||||
|
|
Loading…
Reference in a new issue