Changes between Version 1 and Version 2 of Ticket #29542


Ignore:
Timestamp:
07/06/18 11:36:54 (20 months 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