diff options
author | luxagraf <sng@luxagraf.net> | 2018-01-21 11:08:43 -0700 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-01-21 11:08:43 -0700 |
commit | 342e3f0450f2a13fe3f2c99d0cc28d053592293e (patch) | |
tree | fb58e7b2b3a1659315162bf7028fd94afd888b6b /app/resume | |
parent | 7dbb0c01c941f933914ff0f0d5567a4a7ac7e99c (diff) |
updated code to work with django 2.0
Diffstat (limited to 'app/resume')
-rw-r--r-- | app/resume/build.py | 2 | ||||
-rw-r--r-- | app/resume/models.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/resume/build.py b/app/resume/build.py index b3007fd..e449326 100644 --- a/app/resume/build.py +++ b/app/resume/build.py @@ -1,5 +1,5 @@ import os -from django.core.urlresolvers import reverse +from django.urls import reverse from builder.base import BuildNew from pages.models import Page diff --git a/app/resume/models.py b/app/resume/models.py index c225d39..0dcc160 100644 --- a/app/resume/models.py +++ b/app/resume/models.py @@ -1,6 +1,6 @@ from django.db import models from django.utils.encoding import force_text -from django.core.urlresolvers import reverse +from django.urls import reverse from utils.widgets import markdown_to_html @@ -33,7 +33,7 @@ class PubItem(models.Model): body_html = models.TextField(null=True, blank=True) url = models.CharField(max_length=200, blank=True, null=True) pub_date = models.DateTimeField('Date published') - publisher = models.ForeignKey(Publisher) + publisher = models.ForeignKey(Publisher, on_delete=models.CASCADE) class Meta: ordering = ('-pub_date',) |