Op 17-nov-2010, om 23:46 heeft Marc Aymerich het volgende geschreven: >>>> GenericPost.objects.get(pk=1).content_object.content
That's the strange thing. It just doesn't work: Some code: In [3]: GenericPost.objects.get(pk=1).content_object In [4]: GenericPost.objects.get(pk=1).content_object.content --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /Users/Jonas/Webdesign/genericv/<ipython console> in <module>() AttributeError: 'NoneType' object has no attribute 'content' Jonas Geiregat jo...@geiregat.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.