Skip to content
Snippets Groups Projects
Commit 2d244668 authored by Tim Fechner's avatar Tim Fechner Committed by Tim Fechner
Browse files

Add new command to check if domains are valid

parent bae89501
Branches
No related tags found
No related merge requests found
from django.core.management.base import BaseCommand
from salt_observer.models import Domain
class Command(BaseCommand):
help = 'Check all domains if they are valid'
def handle(self, *args, **kwargs):
''' Check every domain '''
for domain in Domain.objects.all():
domain.check_if_valid()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment