how to rereive the foreign key fields in only get request using django

Published: 14/01/2019
how to rereive the foreign key fields in only get request using django
Source: STACKOVERFLOW.COM

I have my model like this: class Image(models.Model): name=models.CharField(max_length=40,unique=False) image=models.ImageField(upload_to='photos/%Y/%m/%d') class Resized_image(models.Model): image = models.ForeignKey(Image, related_name='resized_images', on_delete=models.CASCADE) rendition = models.ForeignKey(Rendition,related_name='rendition_id',on_delete=models.CASCADE) path = models.Char

Read more
Related news
Comment