Reopened treechanges. Moved validation language to validators.py. Abstracted NodeForm...
[philo.git] / models.py
index 6eac9de..d3bf5d4 100644 (file)
--- a/models.py
+++ b/models.py
@@ -238,6 +238,9 @@ class Node(InheritableTreeEntity):
        
        def render_to_response(self, request, path=None, subpath=None):
                return HttpResponseServerError()
        
        def render_to_response(self, request, path=None, subpath=None):
                return HttpResponseServerError()
+               
+       class Meta:
+               unique_together=(('parent', 'slug',),)
 
 
 class MultiNode(Node):
 
 
 class MultiNode(Node):