mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-10-01 06:04:54 +02:00
fixed new line issues for imported target
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ def import_targets(request):
|
||||
for target in io_string:
|
||||
if validators.domain(target):
|
||||
Domain.objects.create(
|
||||
domain_name=target, insert_date=timezone.now())
|
||||
domain_name=target.rstrip("\n"), insert_date=timezone.now())
|
||||
target_count += 1
|
||||
if target_count:
|
||||
messages.add_message(request, messages.SUCCESS, str(
|
||||
|
||||
Reference in New Issue
Block a user