diff options
-rw-r--r-- | gstudio/models.py | 6 | ||||
-rw-r--r-- | gstudio/templates/gstudio/nodetype_detail.html | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/gstudio/models.py b/gstudio/models.py index 97b48881..5b5cf424 100644 --- a/gstudio/models.py +++ b/gstudio/models.py @@ -279,9 +279,9 @@ class NID(models.Model): ALGO: simple wrapper for the __class__.__name__ so that it can be used in templates """ - return self.__class__.__name__ - # obj = self.ref - # return obj.__class__.__name__ + # return self.__class__.__name__ + obj = self.ref + return obj.__class__.__name__ except: return None diff --git a/gstudio/templates/gstudio/nodetype_detail.html b/gstudio/templates/gstudio/nodetype_detail.html index d4e786b3..7947e585 100644 --- a/gstudio/templates/gstudio/nodetype_detail.html +++ b/gstudio/templates/gstudio/nodetype_detail.html @@ -248,10 +248,10 @@ {% endwith %} {% endblock %} + <!-- Dynamic form begins --> <p> - - +{% if object.reftype == 'Objecttype' %} <b>Add Attributes:</b> {% for i in object.getat %} <a href="{{ get_absolute_url }}/objects/dynamicAttribute/save/{{ i }}/{{ object.title }}">{{ i }}</a><nbsp>; @@ -263,7 +263,7 @@ {% for i in object.getrt %} <a href="{{ get_absolute_url }}/objects/dynamicRelation/displaymem/{{ i }}/{{ object.title }}">{{ i }}</a><nbsp>; {% endfor %} - +{% endif %} </p> <!-- Dyanic form ends --> |