Minor corrections to node_url and embed templatetags to avoid raising unnecessary...
[philo.git] / templatetags / embed.py
index e8c4cae..176bbc4 100644 (file)
@@ -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)