Django retrieves data from multiple tables

微信扫一扫,分享到朋友圈

Django retrieves data from multiple tables

I have two MySQL models:

class registration(models.Model):
   name = models.CharField(max_length=30)
   email = models.EmailField()
   password = models.CharField(max_length=30)
   company = models.CharField(max_length=30)

class personal_details(models.Model):
   reg = models.ForeignKey(registration)
   job = models.CharField(max_length=30)
   experience = models.IntegerField(default=0)

I want to filtering details using both experience and company as a keyword. I want to fetch and display details(name, email, company, job, experience) from both tables in my HTML page.

微信扫一扫,分享到朋友圈

Django retrieves data from multiple tables

MySQL安全优化

上一篇

区块链投资:没有反思,就没有收获

下一篇

你也可能喜欢

Django retrieves data from multiple tables

长按储存图像,分享给朋友