Hello Guys! How do I write a model query in django python to get the User
details(Recruitment) when i pass a search parameter( skill) to the Skill
table?
class Recruitment(models.Model):
fname = models.CharField(max_length=50)
lname = models.CharField(max_length=50)
address = models.CharField(max_length=100)
phone = models.IntegerField()
email = models.CharField(max_length=50)
password = models.CharField(max_length=30)
class CV(models.Model):
summary = models.TextField()
f_key_REC = models.ForeignKey(Recruitment, related_name='cv',
on_delete=models.CASCADE)
class Skill(models.Model):
sk1 = models.CharField(max_length=100, default=None)
sk2 = models.CharField(max_length=100, default=None)
sk3 = models.CharField(max_length=100, default=None)
fk_sCV = models.ForeignKey(CV, related_name='skill',
on_delete=models.CASCADE)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/c381af8c-e2f7-41b8-ae48-71f389a23459n%40googlegroups.com.