If there is a moderated model,
Book and we sub-classed it into
EBook, by default, any ebook instance should have a corresponding book instance also created. It should always be accessible by the
book_ptr attribute. But our moderated models do not do that. See the example below:
eb1 = EBook.objects.create(name="Test book", pages=300) EBook.objects.count() 1
No corresponding book created
Book.objects.count() 0 eb1.book_ptr_id 1 eb1.book_ptr DoesNotExist: Book matching query does not exist. }}} We have inherited this issue from django-gatekeeper it seems. So the problem must be with the custom manager/queryset.