Skip to content
Snippets Groups Projects
Verified Commit 22d5a2fd authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

fix: validate key instead of value od fallback default pool

parent bb0c9302
No related branches found
No related tags found
No related merge requests found
......@@ -625,8 +625,8 @@ def validate_fallback_pools(value):
def validate_fallback_default_pool(value):
if value not in RadioSettings.objects.first().fallback_pools.values():
raise DjangoValidationError(f"Pool '{value}' does not exist in fallback pools.")
if value not in RadioSettings.objects.first().fallback_pools.keys():
raise DjangoValidationError(f"Pool key '{value}' does not exist in fallback pools.")
class RadioSettings(models.Model):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment