From 798b329a83de4102773d2aa4ffa41205e7333b17 Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Tue, 9 Jul 2024 18:59:51 +0200 Subject: [PATCH 1/2] Fix: quote marks --- archivist/apps/authentication/urls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archivist/apps/authentication/urls.py b/archivist/apps/authentication/urls.py index a4f082b..d96ee42 100644 --- a/archivist/apps/authentication/urls.py +++ b/archivist/apps/authentication/urls.py @@ -3,7 +3,7 @@ from .views import login_view, register_user from django.contrib.auth.views import LogoutView urlpatterns = [ - path('login/', login_view, name="login"), - path('register/', register_user, name="register"), - path("logout/", LogoutView.as_view(), name="logout") + path("login/", login_view, name="login"), + path("register/", register_user, name="register"), + path("logout/", LogoutView.as_view(), name="logout"), ] From f11d49baa841be3fc09cae870d899461ec7d583b Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Tue, 9 Jul 2024 19:01:51 +0200 Subject: [PATCH 2/2] Set: last import to Null on default --- archivist/apps/importer/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivist/apps/importer/models.py b/archivist/apps/importer/models.py index 3d1fc9e..aa8d316 100644 --- a/archivist/apps/importer/models.py +++ b/archivist/apps/importer/models.py @@ -15,7 +15,7 @@ class ImportSourceURLs(models.Model): date_added = models.DateTimeField(auto_now_add=True, editable=True) - last_imported = models.DateTimeField(auto_now=True, editable=True) + last_imported = models.DateTimeField(editable=True, default=None, null=True) class Meta: verbose_name = _("Import Source URL")