Changes between Initial Version and Version 1 of Ticket #29567


Ignore:
Timestamp:
Jul 16, 2018, 5:12:18 AM (6 years ago)
Author:
HongWeipeng
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29567 – Description

    initial v1  
    1 ```
     1{{{#!python
    22class B(models.Model):
    33    name = models.CharField(max_length=10)
     
    66    name = models.CharField(max_length=10)
    77    b = models.ForeignKey('B', on_delete=models.CASCADE)
    8 ```
     8}}}
    99And then:
    10 ```
     10{{{#!python
    1111A.objects.all().update(name=F('b__name'))
    1212
    1313raise FieldError("Joined field references are not permitted in this query")
    1414django.core.exceptions.FieldError: Joined field references are not permitted in this query
    15 ```
     15}}}
Back to Top