summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKabir Kukreti <kabir@gnowledge.org>2012-03-28 17:09:16 +0530
committerKabir Kukreti <kabir@gnowledge.org>2012-03-28 17:09:16 +0530
commit540049c0363701efbc92884b7ac3056672f9b57b (patch)
tree9c2628593e4c1ef59f6fa16664dbfd29e356e19b
parentb2b9d6223ffaec0195faa16ffe30e7aedffd24c0 (diff)
downloadgnowsys-540049c0363701efbc92884b7ac3056672f9b57b.tar.gz
Malformed url in gstudio.js and dashboard fixed.Import error in add.py corrected
-rw-r--r--gstudio/static/gstudio/js/gstudio.js2
-rw-r--r--gstudio/templates/gstudiodashboard/dashboard.html1
-rw-r--r--objectapp/views/add.py1
3 files changed, 2 insertions, 2 deletions
diff --git a/gstudio/static/gstudio/js/gstudio.js b/gstudio/static/gstudio/js/gstudio.js
index bb5c8799..d8d9d608 100644
--- a/gstudio/static/gstudio/js/gstudio.js
+++ b/gstudio/static/gstudio/js/gstudio.js
@@ -47,7 +47,7 @@ $ = django.jQuery
$("#id_attributetype").change(function() {
test = $("#id_attributetype").val()
- url = "/gstudio/ajax/?id=" + test
+ url = "/nodetypes/ajax/?id=" + test
$.get(url,
function(data){
diff --git a/gstudio/templates/gstudiodashboard/dashboard.html b/gstudio/templates/gstudiodashboard/dashboard.html
index 43ea1edd..048a4fdf 100644
--- a/gstudio/templates/gstudiodashboard/dashboard.html
+++ b/gstudio/templates/gstudiodashboard/dashboard.html
@@ -7,7 +7,6 @@
<h2>Gstudio</h2>
<ul>
<li><a href="{{get_absoulute_url}}/nodetypes/add/metatype">{% trans 'Add Metatype' %}</a></li>
- <li><a href="{{get_absoulute_url}}/nodetypes/add/metatype">{% trans 'Add Metatype' %}</a></li>
<li><a href="{{get_absoulute_url}}/nodetypes/add/objecttype">{% trans 'Add Object type' %}</a></li>
<li><a href="{{get_absoulute_url}}/nodetypes/add/relationtype">{% trans 'Add Relation type' %}</a></li>
<li><a href="{{get_absoulute_url}}/nodetypes/add/attributetype">{% trans 'Add Attribute Type' %}</a></li>
diff --git a/objectapp/views/add.py b/objectapp/views/add.py
index bc2d0c6e..afe96f98 100644
--- a/objectapp/views/add.py
+++ b/objectapp/views/add.py
@@ -90,6 +90,7 @@ def addgbobject(request):
return render_to_response(template, variables)
+
@reversion.create_revision()
def addprocess(request):
if request.method == 'POST':