#NEWLINE# def assign_slugs( apps , schema_editor ) : #NEWLINE# #INDENT# Index = apps . get_model ( 'document_indexing' , 'Index' ) #NEWLINE# for index in Index . objects . all ( ) : #NEWLINE# #INDENT# index . slug = slugify ( index . label ) #NEWLINE# index . save ( )