Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for Django 2.0 #320

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added on_delete to some test model fields
  • Loading branch information
dgilge committed Dec 4, 2017
commit 212dd35e3a78d192f3f7bb5235dcd97293886e44
2 changes: 1 addition & 1 deletion simple_history/registry_tests/migration_test_app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ class WhatIMean(DoYouKnow):


class Yar(models.Model):
what = models.ForeignKey(WhatIMean)
what = models.ForeignKey(WhatIMean, on_delete=models.CASCADE)
history = HistoricalRecords()
6 changes: 5 additions & 1 deletion simple_history/tests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,11 @@ class UserAccessorOverride(models.Model):


class Employee(models.Model):
manager = models.OneToOneField('Employee', null=True)
manager = models.OneToOneField(
'Employee',
on_delete=models.CASCADE,
null=True,
)
history = HistoricalRecords()


Expand Down