Re: manager.raw returning Capitalized field names

2010-05-20 Thread Russell Keith-Magee
class CheckIn(models.Model): sample_id = models.AutoField(db_column='SampleID', primary_key=True) date_arrived = models.DateField(db_column='DateArrived') company_name = models.CharField(max_length=100, db_column='Company') < plus any extra fields > class Meta:

Re: manager.raw returning Capitalized field names

2010-05-19 Thread geraldcor
Russ, >As for templates - they don't ever use the CamelCase name. They >exclusively use the model names, and there's no 'raw query' equivalent >for templates. This is the problem that is presenting the possible bug. I have to use {{ m.SomeField }} in my template rather than {{ m.somefield }} as

Re: manager.raw returning Capitalized field names

2010-05-15 Thread Russell Keith-Magee
On Fri, May 14, 2010 at 5:29 AM, geraldcor wrote: > Hello, > > Some background first. I am working with a legacy database that is not > only legacy, it is legacy Microsoft access so there is some hacking > going on. I am accessing a MySQL backend and my models are set up to >

manager.raw returning Capitalized field names

2010-05-13 Thread geraldcor
Hello, Some background first. I am working with a legacy database that is not only legacy, it is legacy Microsoft access so there is some hacking going on. I am accessing a MySQL backend and my models are set up to use the existing tables/field names. When I use regular old ORM queries,