Re: accessing foreign key value in views.py

2017-05-18 Thread Antonis Christofides
Hi, We need more information. We need to know which field causes the problem. Maybe the full error message with full traceback could help. Regards, A. Antonis Christofides http://djangodeployment.com On 2017-05-18 12:53, Amisha Hans wrote: > Hey , > > I am facing a lot of issues regarding thi

accessing foreign key value in views.py

2017-05-18 Thread Amisha Hans
Hey , I am facing a lot of issues regarding this foreign key !. Scenario is a s follows :- models.py class ComponentDeprecation(models.Model): row_id = models.IntegerField(primary_key=True) component = models.ForeignKey('SsComponents', db_column='component') submitter = models.Char