diff options
author | SaiEswarEpuri <saieswar36@gmail.com> | 2015-07-06 11:03:51 +0530 |
---|---|---|
committer | SaiEswarEpuri <saieswar36@gmail.com> | 2015-07-06 11:03:51 +0530 |
commit | f94502913b25c639880f8c5216073d752a4be55f (patch) | |
tree | 2dd4d48f0c0306b14dbe936b056ad7e68b145a78 /gnowsys-ndf/gnowsys_ndf | |
parent | 195da75a80ff18fddad34e0dfc7cc9260202ee3a (diff) | |
download | gnowsys-f94502913b25c639880f8c5216073d752a4be55f.tar.gz |
No changes made
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/models.py | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/models.py b/gnowsys-ndf/gnowsys_ndf/ndf/models.py index bb69cda..10fd215 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/models.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/models.py @@ -235,18 +235,8 @@ 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 def user_details_dict(self): """Retrieves names of created-by & modified-by users from the given @@ -1569,16 +1559,7 @@ 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 |