Skip to content

Commit

Permalink
Merge pull request #182 from nezhar/increase_user_agent_max_length
Browse files Browse the repository at this point in the history
Increase max_length of user_agent to 512
  • Loading branch information
nezhar authored Oct 13, 2023
2 parents eac4152 + 275d958 commit c225102
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.22 on 2023-10-13 12:23

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('django_rest_passwordreset', '0003_allow_blank_and_null_fields'),
]

operations = [
migrations.AlterField(
model_name='resetpasswordtoken',
name='user_agent',
field=models.CharField(blank=True, default='', max_length=512, verbose_name='HTTP User Agent'),
),
]
3 changes: 2 additions & 1 deletion django_rest_passwordreset/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ def generate_key():
blank=True,
null=True,
)

user_agent = models.CharField(
max_length=256,
max_length=512,
verbose_name=_("HTTP User Agent"),
default="",
blank=True,
Expand Down

0 comments on commit c225102

Please sign in to comment.