1
0
mirror of https://github.com/django/django.git synced 2025-10-25 22:56:12 +00:00

Fixed #36032 -- Rendered URLField values as links in the admin.

This commit is contained in:
antoliny0919
2024-12-25 11:35:27 +09:00
committed by Sarah Boyce
parent 5851605863
commit 97ee8b82c2
6 changed files with 26 additions and 3 deletions

View File

@@ -33,6 +33,7 @@ class GrandChild(models.Model):
class Genre(models.Model):
name = models.CharField(max_length=20)
file = models.FileField(upload_to="documents/", blank=True, null=True)
url = models.URLField(blank=True, null=True)
class Band(models.Model):