Can't run tests when admin is part of INSTALLED_APPS?

2014-06-24 Thread John Rambo
If I try to run test suites in 1.7 with admin in INSTALLED_APPS, I get this... File "/django/core/management/commands/migrate.py", line 195, in model_installed (opts.auto_created and converter(opts.auto_created._meta.db_table) in tables)) AttributeError: 'bool' object has no attribute '_m

How to use 1.7 from git repository

2014-06-23 Thread John Rambo
How do I switch to version 1.7 in git when I have the current repository? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.c

Re: distinct().filter() applies filter before distinct

2014-06-10 Thread John Rambo
This better illustrates what I mean: Example.objects.order_by('a','foreignkey__b').distinct('a').filter(foreignkey__b='something') On Tuesday, June 10, 2014 4:06:50 PM UTC-5, John Rambo wrote: > > If we chain a call to filter() after a call to dis

distinct().filter() applies filter before distinct

2014-06-10 Thread John Rambo
If we chain a call to filter() after a call to distinct(), the filter is applied to the query before the distinct. How do I filter the results of a query *after* applying distinct? Example.objects.order_by('a','b').distinct('a').filter(b='something) The where clause in the SQL resulting from

How do I execute custom sql in a test right after the database is created?

2014-05-16 Thread John Rambo
First of all I know that is bound to break a lot of other things. I changed the core so references to tables are PostgreSQL fully qualified table name (e.g. "family"."person" instead of family_person). So far it had been doing what I want except I can't run tests because the schemas are not cre