mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #27377 -- Clarified that prepopulated_fields doesn't work with OneToOneField.
This commit is contained in:
parent
3e43d24ad3
commit
6af23a4521
6 changed files with 19 additions and 6 deletions
|
@ -36,6 +36,7 @@ class ValidationTestModel(models.Model):
|
|||
is_active = models.BooleanField(default=False)
|
||||
pub_date = models.DateTimeField()
|
||||
band = models.ForeignKey(Band, models.CASCADE)
|
||||
best_friend = models.OneToOneField(User, models.CASCADE)
|
||||
# This field is intentionally 2 characters long (#16080).
|
||||
no = models.IntegerField(verbose_name="Number", blank=True, null=True)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue