Ticket #6837: missing-space.diff

File missing-space.diff, 907 bytes (added by p, 7 years ago)
  • django/db/models/sql/query.py

     
    232232                result.append('WHERE')
    233233            else:
    234234                result.append('AND')
    235             result.append(' AND'.join(self.extra_where))
     235            result.append(' AND '.join(self.extra_where))
    236236
    237237        if self.group_by:
    238238            grouping = self.get_grouping()
  • tests/regressiontests/queries/models.py

     
    602602Traceback (most recent call last):
    603603...
    604604IndexError: ...
     605
     606>>> Note.objects.extra(where=["misc = 'foo'", "note = 'n1'"]).count()
     6071
    605608"""}
    606609
Back to Top