Created
February 25, 2017 12:48
-
-
Save hseritt/6db610021ec4e40ab4c3685be71c8176 to your computer and use it in GitHub Desktop.
Model class fields for handling foreign key deletions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
severity_level = models.ForeignKey( | |
'business.SeverityLevel', null=True, blank=True, | |
on_delete=models.SET( | |
None | |
) | |
) | |
status = models.ForeignKey( | |
'CaseStatus', null=True, blank=True, | |
on_delete=models.SET( | |
get_default_status | |
) | |
) | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment