stages/password: fix migration error
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		| @ -12,6 +12,8 @@ def rename_default_prompt_stage(apps: Apps, schema_editor: BaseDatabaseSchemaEdi | |||||||
|     if not stages.exists(): |     if not stages.exists(): | ||||||
|         return |         return | ||||||
|     stage = stages.first() |     stage = stages.first() | ||||||
|  |     if PromptStage.objects.using(db_alias).filter(name="default-password-change-prompt").exists(): | ||||||
|  |         return | ||||||
|     stage.name = "default-password-change-prompt" |     stage.name = "default-password-change-prompt" | ||||||
|     stage.save() |     stage.save() | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer