mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #24940 -- Made model managers hashable
Thanks Federico Jaramillo Martínez for the report and Tim Graham for the test and review.
This commit is contained in:
@@ -48,7 +48,7 @@ class PhoneNumber(models.Model):
|
||||
|
||||
class Contact(models.Model):
|
||||
name = models.CharField(max_length=50)
|
||||
phone_numbers = GenericRelation(PhoneNumber)
|
||||
phone_numbers = GenericRelation(PhoneNumber, related_query_name='phone_numbers')
|
||||
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user