diff --git a/breathecode/authenticate/migrations/0048_auto_20231128_1224.py b/breathecode/authenticate/migrations/0048_auto_20231128_1224.py new file mode 100644 index 000000000..de7cc29fa --- /dev/null +++ b/breathecode/authenticate/migrations/0048_auto_20231128_1224.py @@ -0,0 +1,29 @@ +# Generated by Django 3.2.23 on 2023-11-28 12:24 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('authenticate', '0047_auto_20231026_2210'), + ] + + operations = [ + migrations.AlterField( + model_name='userinvite', + name='asset_slug', + field=models.SlugField(blank=True, + help_text='If set, the user signed up because of an Asset', + max_length=60, + null=True), + ), + migrations.AlterField( + model_name='userinvite', + name='event_slug', + field=models.SlugField(blank=True, + help_text='If set, the user signed up because of an Event', + max_length=120, + null=True), + ), + ] diff --git a/breathecode/authenticate/models.py b/breathecode/authenticate/models.py index e1bf3e9d6..3db451d5c 100644 --- a/breathecode/authenticate/models.py +++ b/breathecode/authenticate/models.py @@ -433,11 +433,11 @@ def __init__(self, *args, **kwargs): blank=True) cohort = models.ForeignKey(Cohort, on_delete=models.CASCADE, null=True, default=None, blank=True) role = models.ForeignKey(Role, on_delete=models.CASCADE, null=True, default=None, blank=True) - event_slug = models.SlugField(max_length=40, + event_slug = models.SlugField(max_length=120, blank=True, null=True, help_text='If set, the user signed up because of an Event') - asset_slug = models.SlugField(max_length=40, + asset_slug = models.SlugField(max_length=60, blank=True, null=True, help_text='If set, the user signed up because of an Asset')