Changes between Initial Version and Version 1 of Ticket #10070, comment 13


Ignore:
Timestamp:
Aug 4, 2015, 6:16:24 PM (9 years ago)
Author:
Tim Graham

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10070, comment 13

    initial v1  
    22
    33named parameters do currently work with some db interfaces but the code breaks on the __repr__() method of a RawQuerySet:
    4 
     4{{{
    55param = dict(lname = 'Doe')
    66qs = Person.objects.raw('SELECT * FROM myapp_person WHERE last_name = %(lname)s', param)
     
    1717
    1818TypeError: format requires a mapping
    19 
     19}}}
Back to Top