update django
This commit is contained in:
parent
5ad5fc0798
commit
9a731560a6
12 changed files with 102 additions and 60 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue