Abhilash Kumar

Results 2 comments of Abhilash Kumar

@odoublewen Please let me know if the following work around seems useful to you. MyModel (parent) in models.py class MyModel(models.Model): MyModelId = models.BigAutoField( _('Id'), primary_key=True ) Name = models.CharField( _('Name'),...

Can you tell why you have set your entity relationship as class Testing1(models.Model): symbol = models.CharField('Ticker', max_length=32, primary_key=True) tf = models.CharField('timeframe', max_length=1) class Testing2(models.Model): symbol = models.ForeignKey(Testing1, on_delete=models.CASCADE) price =...