On 31 October 2012 21:46, Ian Kelly <[email protected]> wrote: > On Wed, Oct 31, 2012 at 2:18 PM, Michał Nowotka <[email protected]> wrote: >> >> But what is really buggy here is if i explicitly specify that this >> table is not managed django should respect db_table and not perform >> any truncation. That's all. > > > It won't truncate the name if you fully enclose it in quotes. Instead of: > > > db_table = 'schema_name\".\"table_name' > > Try: > > db_table = '\"schema_name\".\"table_name\"' > > This only works for unmanaged models. For managed models it results in an > error when it tries to create the sequence and trigger using syncdb.
Why all the slashes ? Unless you specify r'' or make them double, they don't do anything! >>> '\"' == '"' True -- Łukasz Rekucki -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
