From 4fa0b87d956328c45a6286366277a48c2f9f8e85 Mon Sep 17 00:00:00 2001 From: Stamatis Katsaounis Date: Thu, 21 May 2020 10:29:25 +0300 Subject: [PATCH] Fix option --- patchman/management/commands/set_site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patchman/management/commands/set_site.py b/patchman/management/commands/set_site.py index 659bb281..3ad97a1b 100644 --- a/patchman/management/commands/set_site.py +++ b/patchman/management/commands/set_site.py @@ -17,7 +17,7 @@ def handle(self, *args, **options): try: Site.objects.filter(pk=settings.SITE_ID).update( name=options['site_name'], domain=options['site_name']) - if options['claer_cache']: + if options['clear_cache']: Site.objects.clear_cache() except Exception as e: raise CommandError('Failed to update Site name', str(e))