Re: Prefetch object (django 1.7)

2014-01-29 Thread Marcin Szamotulski
On 01:42 Mon 27 Jan , Marcin Szamotulski wrote: > Hello, > > I have a model > > class Post(models.Model): > > ... > authors = models.ManyToManyField('accounts.User', through='PostAuthor', > related_name='authors_posts

Re: get_user_model in Django 1.7

2014-01-26 Thread Marcin Szamotulski
On 11:39 Sun 26 Jan , Marcin Szamotulski wrote: > Hello, > > I ask the question here since it is about the developed Django-1.7 > version but if you think that I should ask it at django-users then > please excuse me. > > When I use get_user_model in a top level of anothe

get_user_model in Django 1.7

2014-01-26 Thread Marcin Szamotulski
Hello, I ask the question here since it is about the developed Django-1.7 version but if you think that I should ask it at django-users then please excuse me. When I use get_user_model in a top level of another app models I got an error : >>> django.setup() File "", line 1, in File