Skip to content

Commit

Permalink
Merge pull request #111 from pinax/add-on-delete
Browse files Browse the repository at this point in the history
Add on_delete=
  • Loading branch information
grahamu authored Feb 24, 2018
2 parents 5e92a0d + 63bda64 commit 7f459a2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,10 @@ Both templates ship already configured to work out of the box.

## Change Log

### 7.0.3

* Fix migration missing on_delete=

### 7.0.2

* Restore and improve documentation guidance for pinax-images usage
Expand Down
7 changes: 6 additions & 1 deletion pinax/blog/migrations/0010_auto_20161223_1014.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


def initial_blogs(apps, schema_editor):
Expand Down Expand Up @@ -33,7 +34,11 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='blog',
name='scoper',
field=models.OneToOneField(related_name='blog', to=settings.PINAX_BLOG_SCOPING_MODEL)
field=models.OneToOneField(
related_name='blog',
to=settings.PINAX_BLOG_SCOPING_MODEL,
on_delete=django.db.models.deletion.CASCADE,
)
)
)
operations.append(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import find_packages, setup

VERSION = "7.0.2"
VERSION = "7.0.3"
LONG_DESCRIPTION = """
.. image:: http://pinaxproject.com/pinax-design/patches/pinax-blog.svg
:target: https://pypi.python.org/pypi/pinax-blog/
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ deps =

usedevelop = True
commands =
coverage run setup.py test
coverage report -m --skip-covered
python makemigrations.py --check --dry-run
coverage run --rcfile=tox.ini setup.py test
coverage report --rcfile=tox.ini -m --skip-covered

[testenv:checkqa]
commands =
Expand Down

0 comments on commit 7f459a2

Please sign in to comment.