diff --git a/archivist/apps/authentication/urls.py b/archivist/apps/authentication/urls.py index d96ee42..a4f082b 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") ] diff --git a/archivist/apps/importer/models.py b/archivist/apps/importer/models.py index aa8d316..3d1fc9e 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(editable=True, default=None, null=True) + last_imported = models.DateTimeField(auto_now=True, editable=True) class Meta: verbose_name = _("Import Source URL")