1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #28575 -- Made RelatedObjectDoesNotExist classes pickable.

Thanks to Rachel Tobin for the initial __qualname__ work and tests.
This commit is contained in:
Simon Charette
2017-10-18 21:43:53 -04:00
committed by Tim Graham
parent 4a861e8850
commit d4fb742094
3 changed files with 39 additions and 4 deletions

View File

@@ -45,6 +45,7 @@ class Happening(models.Model):
name = models.CharField(blank=True, max_length=100, default="test")
number1 = models.IntegerField(blank=True, default=standalone_number)
number2 = models.IntegerField(blank=True, default=Numbers.get_static_number)
event = models.OneToOneField(Event, models.CASCADE, null=True)
class Container: