This commit is contained in:
@@ -31,11 +31,11 @@ class Command(BaseCommand):
|
||||
if not hostname:
|
||||
raise CommandError("--url bevat geen geldig domein")
|
||||
source, _ = Source.objects.get_or_create(
|
||||
domain=hostname,
|
||||
base_url=options["url"],
|
||||
source_type=options["source_type"],
|
||||
defaults={
|
||||
"domain": hostname,
|
||||
"name": options["source_name"],
|
||||
"base_url": options["url"],
|
||||
"status": Source.Status.ACTIVE,
|
||||
"policy": Source.Policy.ALLOW,
|
||||
"parser_key": "auto",
|
||||
|
||||
Reference in New Issue
Block a user