seeder
django_spire.knowledge.collection.seeding.seeder
CollectionSeeder
Bases: Seeder
Source code in django_spire/contrib/seeding/seeder.py
model_class = models.Collection
class-attribute
instance-attribute
fields_seeds = {'id': Seeder.exclude(), 'parent_id': Seeder.exclude(), 'name': Seeder.llm(str, 'A name for a knowledge base collection, e.g. a department, team, or topic area.'), 'description': Seeder.llm(str, 'Short description of what documents this knowledge base collection holds.')}
class-attribute
instance-attribute
ChildCollectionSeeder
Bases: Seeder
Source code in django_spire/contrib/seeding/seeder.py
model_class = models.Collection
class-attribute
instance-attribute
fields_seeds = {'id': Seeder.exclude(), 'parent_id': Seeder.model.random_queryset_foreign_key(models.Collection.objects.parentless()), 'name': Seeder.llm(str, 'A name for a child knowledge base collection, e.g. a topic within a department.'), 'description': Seeder.llm(str, 'Short description of what documents this child knowledge base collection holds.')}
class-attribute
instance-attribute
GrandchildCollectionSeeder
Bases: Seeder