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
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
def create_collection(self): coll = ModelCollection(model=ContentType.objects.get_for_model(User), application=self.app) coll.save() return coll
def create_collection(self): coll = ModelCollection(model=ContentType.objects.get_for_model(User), application=self.application) coll.save() return coll