Skip to content

Commit

Permalink
UserInvite.event_slug size increased
Browse files Browse the repository at this point in the history
  • Loading branch information
tommygonzaleza committed Nov 28, 2023
1 parent 29c665a commit 867136a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions breathecode/authenticate/migrations/0048_auto_20231128_1224.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
4 changes: 2 additions & 2 deletions breathecode/authenticate/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 867136a

Please sign in to comment.