summaryrefslogtreecommitdiff
path: root/app/resume
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-01-21 11:08:43 -0700
committerluxagraf <sng@luxagraf.net>2018-01-21 11:08:43 -0700
commit342e3f0450f2a13fe3f2c99d0cc28d053592293e (patch)
treefb58e7b2b3a1659315162bf7028fd94afd888b6b /app/resume
parent7dbb0c01c941f933914ff0f0d5567a4a7ac7e99c (diff)
updated code to work with django 2.0
Diffstat (limited to 'app/resume')
-rw-r--r--app/resume/build.py2
-rw-r--r--app/resume/models.py4
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',)