Stucked In Modelform

2019-09-21 Thread Shakil Ahmmed
I Have three ForeignKey in my model.. When I Create Form with ModelForm and show the foreign key field into html select it execute Duplicate Queries for each Foreignkey field Heres My Models.py class TeamModel(models.Model): team_name = models.CharField(unique=True, db_index=True, max_lengt

Fwd: Stucked In ModelForm

2019-09-21 Thread Shakil Ahmmed
-- Forwarded message - From: Shakil Ahmmed Date: Sun, Sep 22, 2019 at 1:46 AM Subject: Stucked In ModelForm To: I Have three ForeignKey in my model.. When I Create Form with ModelForm and show the foreign key field into html select it execute Duplicate Queries for each