From 4c038f8157067cc97c46cf20af0f59541c79abd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Thu, 26 Dec 2019 22:41:30 +0100 Subject: [PATCH] Implement bookmark export --- bookmarks/views/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookmarks/views/settings.py b/bookmarks/views/settings.py index d9552cc..61771d4 100644 --- a/bookmarks/views/settings.py +++ b/bookmarks/views/settings.py @@ -4,7 +4,7 @@ from django.http import HttpResponseRedirect, HttpResponse from django.shortcuts import render from django.urls import reverse -from bookmarks.models import Bookmark +from bookmarks.queries import query_bookmarks from bookmarks.services.exporter import export_netscape_html from bookmarks.services.importer import import_netscape_html @@ -34,7 +34,7 @@ def bookmark_import(request): @login_required def bookmark_export(request): try: - bookmarks = Bookmark.objects.all() + bookmarks = query_bookmarks(request.user, '') file_content = export_netscape_html(bookmarks) response = HttpResponse(content_type='text/plain; charset=UTF-8')