mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Increase length of OAuthGrant.redirect_uri
This commit is contained in:
18
src/pretix/api/migrations/0005_auto_20191028_1541.py
Normal file
18
src/pretix/api/migrations/0005_auto_20191028_1541.py
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 2.2.1 on 2019-10-28 15:41
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('pretixapi', '0004_auto_20190405_1048'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='oauthgrant',
|
||||||
|
name='redirect_uri',
|
||||||
|
field=models.CharField(max_length=2500),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -43,6 +43,7 @@ class OAuthGrant(AbstractGrant):
|
|||||||
OAuthApplication, on_delete=models.CASCADE
|
OAuthApplication, on_delete=models.CASCADE
|
||||||
)
|
)
|
||||||
organizers = models.ManyToManyField('pretixbase.Organizer')
|
organizers = models.ManyToManyField('pretixbase.Organizer')
|
||||||
|
redirect_uri = models.CharField(max_length=2500) # Only 255 in AbstractGrant, which caused problems
|
||||||
|
|
||||||
|
|
||||||
class OAuthAccessToken(AbstractAccessToken):
|
class OAuthAccessToken(AbstractAccessToken):
|
||||||
|
|||||||
Reference in New Issue
Block a user