mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-20 18:05:19 -04:00
resolve circular import in core/views
This commit is contained in:
parent
a0bef4e27b
commit
5ac941cf2e
1 changed files with 2 additions and 1 deletions
|
@ -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.forms import AddLinkForm
|
||||
from core.admin import result_url
|
||||
|
||||
from queues.tasks import bg_add
|
||||
|
||||
|
@ -452,6 +451,8 @@ class AddView(UserPassesTestMixin, FormView):
|
|||
}
|
||||
|
||||
def form_valid(self, form):
|
||||
from core.admin_archiveresults import result_url
|
||||
|
||||
url = form.cleaned_data["url"]
|
||||
print(f'[+] Adding URL: {url}')
|
||||
parser = form.cleaned_data["parser"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue