Re: inspectdb() sees MSSQL varchar([n]) fields as type textfield

2012-06-13 Thread rico_suave
Hi Russ, I have done as you suggested and the solution (If I didn't mess things up) was actually quite simple indeed. We are using pyodbc and django-pyodbc. I have submitted my change to the django-pyodbc guys, for them to have a look. If they actually implement this it will be my first contribut

Re: inspectdb() sees MSSQL varchar([n]) fields as type textfield

2012-06-11 Thread Russell Keith-Magee
On Mon, Jun 11, 2012 at 4:26 PM, rico_suave wrote: > Hi All, > > We (as a company) are relatively new to Django and currently implementing a > system where we use inspectdb to use an existing MSSQL 2005 database from > within Django. > We have encountered different problems with the ORM part of th

inspectdb() sees MSSQL varchar([n]) fields as type textfield

2012-06-11 Thread rico_suave
Hi All, We (as a company) are relatively new to Django and currently implementing a system where we use inspectdb to use an existing MSSQL 2005 database from within Django. We have encountered different problems with the ORM part of the application in combination with MSSQL, most of which we ha