def _create_collection(self): owner = User.objects.create() collection = KanjiCardCollection(owner=owner, name='default') collection.save() return collection
def _create_collection(self, name='default', assign_owner=True): collection = KanjiCardCollection(name=name) if assign_owner: collection.owner = User.objects.create() collection.save() return collection