1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-19 12:59:36 +02:00

Fix max url length, adds line breaks to display, truncates long urls. Remove old seed command.

This commit is contained in:
Sean Morley 2024-09-17 10:34:31 -04:00
parent 0fd9e04599
commit 78f56a3a5f
5 changed files with 46 additions and 4228 deletions

View file

@ -43,7 +43,7 @@ class Adventure(models.Model):
max_length=100), blank=True, null=True)
description = models.TextField(blank=True, null=True)
rating = models.FloatField(blank=True, null=True)
link = models.URLField(blank=True, null=True)
link = models.URLField(blank=True, null=True, max_length=2083)
image = ResizedImageField(force_format="WEBP", quality=75, null=True, blank=True, upload_to='images/')
date = models.DateField(blank=True, null=True)
end_date = models.DateField(blank=True, null=True)