Ticket #15836: 15836.patch

File 15836.patch, 709 bytes (added by Aymeric Augustin, 14 years ago)
  • django/db/models/manager.py

     
    201201        return self.get_query_set()._update(values, **kwargs)
    202202
    203203    def raw(self, raw_query, params=None, *args, **kwargs):
    204         return RawQuerySet(raw_query=raw_query, model=self.model, params=params, using=self._db, *args, **kwargs)
     204        return RawQuerySet(raw_query=raw_query, model=self.model,
     205                params=tuple(params), using=self._db, *args, **kwargs)
    205206
    206207class ManagerDescriptor(object):
    207208    # This class ensures managers aren't accessible via model instances.
Back to Top