'Parent field name in not rendering in django while adding new data

I am working on one project where i am facing issue in field value rendering. I added one product and now i want to add the record of it means for how much rupee it cost etc. But the problem now is once it click on add form the product name here it should be product1 is not rendering automatically but the category is rendering automatically i can select the item from drop down list but it should render automatically. Once i click on add product it should automatically display that product name but it's not displaying but the category is displaying. Guide me what's wrong here.

class Category(models.Model):
    name = models.CharField(max_length=200)

    def __str__(self) -> str:
        return self.name


class Storage(models.Model):   
    product_name = models.CharField(max_length=500)
    quantity = models.CharField(max_length=500, default='1')
    MRP = models.CharField(max_length=500, default='', blank=True)
    selling_price = models.DecimalField(max_digits=8, decimal_places=0)

class ProductRecord(models.Model):
    storage = models.ForeignKey(Storage, on_delete=models.CASCADE)
    category = models.ForeignKey(Category, on_delete=models.CASCADE)
    model = models.CharField(max_length=1000, null=True, blank=True, unique=True)

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source