Skip to content

Commit

Permalink
fix migration for django 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shtalinberg committed Dec 12, 2018
1 parent 8e05d15 commit 1c368c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion actionslog/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Migration(migrations.Migration):
('changes', models.TextField(verbose_name='change message', blank=True)),
('remote_ip', models.GenericIPAddressField(null=True, verbose_name='remote IP', blank=True)),
('created_at', models.DateTimeField(auto_now_add=True, verbose_name='created at')),
('content_type', models.ForeignKey(related_name='+', verbose_name='content type', blank=True, to='contenttypes.ContentType', null=True)),
('content_type', models.ForeignKey(related_name='+', on_delete=django.db.models.deletion.SET_NULL, verbose_name='content type', blank=True, to='contenttypes.ContentType', null=True)),
('user', models.ForeignKey(related_name='actionlogs', on_delete=django.db.models.deletion.SET_NULL, verbose_name='user', blank=True, to=settings.AUTH_USER_MODEL, null=True)),
],
options={
Expand Down
2 changes: 1 addition & 1 deletion actionslog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class LogAction(models.Model):
content_type = models.ForeignKey(
'contenttypes.ContentType', related_name='+',
verbose_name=_("content type"),
blank=True, null=True, on_delete=models.CASCADE
blank=True, null=True, on_delete=models.SET_NULL
)
object_id = models.BigIntegerField(
verbose_name=_("object id"),
Expand Down

0 comments on commit 1c368c5

Please sign in to comment.