Somebody answered this
http://stackoverflow.com/questions/7954474/why-are-my-two-django-objects-of-the-same-type-behaving-differently
...
>>> s = '%build%'
>>> content_query = content_class.objects.raw("Select * from pms_building where
>>> name like %s",[s])
Help!
I have two objects that i have created using different techniques in
django;
>>> from django.contrib.contenttypes.models import ContentType
>>> from myproject.models import Building
Method A
>>> content_type = ContentType.objects.get(app_label='myproject',
>>> model='Building')
>>>
2 matches
Mail list logo