mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Fixed #26813 -- Prevented empty choice in ModelChoiceField with RadioSelect for fields with blank=False.
This commit is contained in:
parent
1d5fb35e6a
commit
da79ee472d
5 changed files with 50 additions and 7 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue