Skip to content

Commit

Permalink
Merge branch 'url_mapping_length'
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault committed Oct 7, 2024
2 parents a1befbc + 3e9534d commit 1195b21
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions envergo/urlmappings/migrations/0003_alter_urlmapping_url.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.13 on 2024-10-07 13:34

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("urlmappings", "0002_urlmapping_created_at"),
]

operations = [
migrations.AlterField(
model_name="urlmapping",
name="url",
field=models.URLField(max_length=2048),
),
]
2 changes: 1 addition & 1 deletion envergo/urlmappings/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class UrlMapping(models.Model):
"""A mapping between a short key and a URL."""

key = models.CharField(max_length=20, unique=True, default=generate_key)
url = models.URLField()
url = models.URLField(max_length=2048)
created_at = models.DateTimeField(_("Date created"), default=timezone.now)

def __str__(self):
Expand Down

0 comments on commit 1195b21

Please sign in to comment.