summaryrefslogtreecommitdiff
path: root/app/resume/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/resume/models.py')
-rw-r--r--app/resume/models.py4
1 files changed, 2 insertions, 2 deletions
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',)