mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-19 21:02:05 +02:00
resolve circular import in core/views
This commit is contained in:
@@ -24,7 +24,6 @@ from admin_data_views.utils import render_with_table_view, render_with_item_view
|
|||||||
|
|
||||||
from core.models import Snapshot
|
from core.models import Snapshot
|
||||||
from core.forms import AddLinkForm
|
from core.forms import AddLinkForm
|
||||||
from core.admin import result_url
|
|
||||||
|
|
||||||
from queues.tasks import bg_add
|
from queues.tasks import bg_add
|
||||||
|
|
||||||
@@ -452,6 +451,8 @@ class AddView(UserPassesTestMixin, FormView):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def form_valid(self, form):
|
def form_valid(self, form):
|
||||||
|
from core.admin_archiveresults import result_url
|
||||||
|
|
||||||
url = form.cleaned_data["url"]
|
url = form.cleaned_data["url"]
|
||||||
print(f'[+] Adding URL: {url}')
|
print(f'[+] Adding URL: {url}')
|
||||||
parser = form.cleaned_data["parser"]
|
parser = form.cleaned_data["parser"]
|
||||||
|
Reference in New Issue
Block a user