mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #26813 -- Prevented empty choice in ModelChoiceField with RadioSelect for fields with blank=False.
This commit is contained in:
committed by
Mariusz Felisiak
parent
1d5fb35e6a
commit
da79ee472d
@@ -393,6 +393,9 @@ class Character(models.Model):
|
||||
username = models.CharField(max_length=100)
|
||||
last_action = models.DateTimeField()
|
||||
|
||||
def __str__(self):
|
||||
return self.username
|
||||
|
||||
|
||||
class StumpJoke(models.Model):
|
||||
most_recently_fooled = models.ForeignKey(
|
||||
|
||||
Reference in New Issue
Block a user