diff options
author | SaiEswarEpuri <saieswar36@gmail.com> | 2015-06-30 13:28:03 +0530 |
---|---|---|
committer | SaiEswarEpuri <saieswar36@gmail.com> | 2015-06-30 13:28:03 +0530 |
commit | 635aeed447a06b05cc547387096f101443c0b07b (patch) | |
tree | 8e6b58fe3078d846fad6bd41feb49c2b9b6d5b88 /gnowsys-ndf/gnowsys_ndf | |
parent | 30d0c6cba4c956cba782badda69156b00b93f508 (diff) | |
download | gnowsys-635aeed447a06b05cc547387096f101443c0b07b.tar.gz |
No changes made
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/models.py | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/models.py b/gnowsys-ndf/gnowsys_ndf/ndf/models.py index 37b8894..bb69cda 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/models.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/models.py @@ -235,7 +235,16 @@ class Node(DjangoDocument): # ready. default_values = {'created_at': datetime.datetime.utcnow, 'status': u'DRAFT'} use_dot_notation = True - +""" + indexes=[ + { + 'fields':['_type','name'], + }, + { + 'fields':['member_of','group_set'], + }, + ] +""" ########## Setter(@x.setter) & Getter(@property) ########## @property @@ -1560,7 +1569,16 @@ class Triple(DjangoDocument): 'lang': basestring, # Put validation for standard language codes 'status': STATUS_CHOICES_TU } - + """ + indexes=[ + { + 'fields':['_type','name'], + }, + { + 'fields':['_type','subject'], + } + ] +""" required_fields = ['name', 'subject'] use_dot_notation = True use_autorefs = True |