Skip to content

Commit

Permalink
Fix missing on_delete for model (django-cms#151)
Browse files Browse the repository at this point in the history
Fixed missing on_delete for AbstractLink model
  • Loading branch information
vthaian authored Nov 16, 2018
1 parent 336dd6f commit bd72024
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ Changelog
=========


2.2.1 (unreleased)
==================

* Fixed missing on_delete for AbstractLink model


2.2.0 (2018-11-16)
==================

Expand Down
4 changes: 1 addition & 3 deletions djangocms_link/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,13 @@
"""
from __future__ import unicode_literals

from distutils.version import LooseVersion

from django.contrib.sites.models import Site
from django.conf import settings
from django.core.exceptions import ValidationError
from django.db import models
from django.utils.encoding import python_2_unicode_compatible, force_text
from django.utils.translation import ugettext, ugettext_lazy as _

import cms
from cms.models import CMSPlugin, Page

from djangocms_attributes_field.fields import AttributesField
Expand Down Expand Up @@ -122,6 +119,7 @@ class AbstractLink(CMSPlugin):
CMSPlugin,
related_name='%(app_label)s_%(class)s',
parent_link=True,
on_delete=models.CASCADE,
)

class Meta:
Expand Down

0 comments on commit bd72024

Please sign in to comment.