git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Minor corrections to node_url and embed templatetags to avoid raising unnecessary...
[philo.git]
/
templatetags
/
embed.py
diff --git
a/templatetags/embed.py
b/templatetags/embed.py
index
e8c4cae
..
176bbc4
100644
(file)
--- 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 Non
e:
+ if
not instanc
e:
return None
return ContentType.objects.get_for_model(instance)