I want to say thanks to all respondents. I got my code working now. I 
picked up Python/Django about 3weeks and one of the best decisions I've 
made so far is joining this community.

Gracias!

On Saturday, May 13, 2023 at 10:55:36 PM UTC+1 Oduwa Imade wrote:

> 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/d12dd7d4-f175-43e9-b2d6-7fd7dd907f33n%40googlegroups.com.

Reply via email to