Changes between Initial Version and Version 1 of Ticket #29567
- Timestamp:
- Jul 16, 2018, 5:12:18 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29567 – Description
initial v1 1 ``` 1 {{{#!python 2 2 class B(models.Model): 3 3 name = models.CharField(max_length=10) … … 6 6 name = models.CharField(max_length=10) 7 7 b = models.ForeignKey('B', on_delete=models.CASCADE) 8 ``` 8 }}} 9 9 And then: 10 ``` 10 {{{#!python 11 11 A.objects.all().update(name=F('b__name')) 12 12 13 13 raise FieldError("Joined field references are not permitted in this query") 14 14 django.core.exceptions.FieldError: Joined field references are not permitted in this query 15 ``` 15 }}}