X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/ab7d1efef433b723e30a62773f3cf0bbbb35a407..8025c32db79387a8e57d4222d9489c1e85040c57:/templatetags/embed.py diff --git a/templatetags/embed.py b/templatetags/embed.py index e8c4cae..176bbc4 100644 --- a/templatetags/embed.py +++ b/templatetags/embed.py @@ -267,7 +267,7 @@ class InstanceEmbedNode(EmbedNode): def get_content_type(self, context): instance = self.get_instance(context) - if instance is None: + if not instance: return None return ContentType.objects.get_for_model(instance)