mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-05 23:50:59 +00:00
Added missing on_delete to SearchTestSubObject.parent
This commit is contained in:
parent
ddb0665f79
commit
aa3f5b7828
2 changed files with 2 additions and 1 deletions
|
|
@ -254,6 +254,7 @@ Contributors
|
|||
* jcronyn
|
||||
* Ben Sturmfels
|
||||
* Anselm Bradford
|
||||
* Mads Jensen
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ class AnotherSearchTestChild(SearchTest):
|
|||
|
||||
|
||||
class SearchTestSubObject(models.Model):
|
||||
parent = models.ForeignKey(SearchTest, related_name='subobjects')
|
||||
parent = models.ForeignKey(SearchTest, related_name='subobjects', on_delete=models.CASCADE)
|
||||
name = models.CharField(max_length=255)
|
||||
|
||||
def __str__(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue