Hi,

I upgraded from Django 1.7 to 1.8 and now I get this error, if I try to 
access the content_object of a GenericRelation:

ERROR: 'NoneType' object has no attribute '_base_manager'

Context:
I overwrote the save-method in my app and try to get information about the 
object, which is being saved. I need
to know, of which type the generic relation is. So i try to get the 
content_object and this throws this error.

The code is as follows and works for Django 1.7:

    def save(self, update=False, *args, **kwargs):
        ...
        obj = self.content_object

        # throws an error 


Any idea are very welcome.

Thnka,

Hermi

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3e6b6f0a-0478-4744-bcf0-14332cb7ab3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to