mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #18012 -- Propagated reverse foreign keys from proxy to concrete models.
Thanks to Anssi for the review.
This commit is contained in:
@@ -158,7 +158,7 @@ class ProxyTrackerUser(TrackerUser):
|
||||
@python_2_unicode_compatible
|
||||
class Issue(models.Model):
|
||||
summary = models.CharField(max_length=255)
|
||||
assignee = models.ForeignKey(ProxyTrackerUser, models.CASCADE)
|
||||
assignee = models.ForeignKey(ProxyTrackerUser, models.CASCADE, related_name='issues')
|
||||
|
||||
def __str__(self):
|
||||
return ':'.join((self.__class__.__name__, self.summary,))
|
||||
|
||||
Reference in New Issue
Block a user