コード例 #1
0
ファイル: indexes.py プロジェクト: webcube/django-dockitcms
 def create_model_collection(self, **kwargs):
     params = {'model': ContentType.objects.get_for_model(User),
               'application':self.application,}
     params.update(kwargs)
     collection = ModelCollection(**params)
     collection.save()
     return collection
コード例 #2
0
 def create_model_collection(self, **kwargs):
     params = {
         'model': ContentType.objects.get_for_model(User),
         'application': self.application,
     }
     params.update(kwargs)
     collection = ModelCollection(**params)
     collection.save()
     return collection
コード例 #3
0
 def create_collection(self):
     coll = ModelCollection(model=ContentType.objects.get_for_model(User), application=self.app)
     coll.save()
     return coll
コード例 #4
0
 def create_collection(self):
     coll = ModelCollection(model=ContentType.objects.get_for_model(User), application=self.application)
     coll.save()
     return coll