Changes between Version 1 and Version 2 of Ticket #29542


Ignore:
Timestamp:
Jul 6, 2018, 11:36:54 AM (6 years ago)
Author:
Joey Wilhelm
Comment:

Ah, right. I forgot about the related name. This is a heavily reduced version of my actual code. Sorry about that. Fixed!

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29542 – Description

    v1 v2  
    1212
    1313class RequestTask(models.Model):
    14     request = models.ForeignKey(Request, on_delete=models.CASCADE)
     14    request = models.ForeignKey(Request, on_delete=models.CASCADE, related_name='tasks')
    1515    state = models.CharField(max_length=255)
    1616
Back to Top