Re: All tests fail with TypeError: isinstance() arg 2 must be a type or tuple of types

2014-06-18 Thread Sceva
Deleted all the migration files, re-ran makemigrations and migrate, and errors disappeared. -- 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+unsubsc

Re: All tests fail with TypeError: isinstance() arg 2 must be a type or tuple of types

2014-06-17 Thread Sceva
The error appears when I run tests and it is trying to create the default database. I forgot to add that I found this, https://github.com/pelme/pytest_django/issues/68 that seems to be a similar issue. -- You received this message because you are subscribed to the Google Groups "Django user

All tests fail with TypeError: isinstance() arg 2 must be a type or tuple of types

2014-06-17 Thread Sceva
The full error (last on in the stack) is File > "/home//venv/lib/python3.3/site-packages/django/db/models/fields/related.py", > line 1699, in get_default > if isinstance(field_default, self.rel.to): > TypeError: isinstance() arg 2 must be a type or tuple of types Python 3.3.2, Django 1.7b

Re: ForeignKey relationship to FlatPage not available in filter()

2011-11-12 Thread Sceva
I think the problem was I did not have from django.db import models at the top. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/cBRkBTlxUuQJ. To post t

ForeignKey relationship to FlatPage not available in filter()

2011-11-12 Thread Sceva
I have a project using the FlatPage app. I have added a search app with a keyword model. It has a foreignkey relationship to the FlatPage model: from django.contrib import admin > > from django.db import models > > from django.contrib.flatpages.models import FlatPage > > >> >> class SearchKeywor