update django

This commit is contained in:
j 2024-09-18 14:24:01 +01:00
commit 9a731560a6
12 changed files with 102 additions and 60 deletions

View file

@ -99,6 +99,6 @@ class Cover(models.Model):
created = models.DateTimeField(auto_now_add=True)
modified = models.DateTimeField(auto_now=True)
isbn = models.ForeignKey(MovieId, related_name='cover')
isbn = models.ForeignKey(MovieId, related_name='cover', on_delete=models.CASCADE)
cover = models.ImageField(max_length=255, upload_to=cover_image_path)

View file

@ -1,9 +1,8 @@
from __future__ import division, print_function, absolute_import
from django.conf.urls import url
from django.urls import path, re_path
from . import views
urlpatterns = [
url(r'^$', views.cover),
re_path(r'^$', views.cover),
]