create article

This commit is contained in:
jain
2023-08-10 20:17:24 +05:30
parent fbd6f9ece5
commit 1e162255d7
2 changed files with 20 additions and 1 deletions

View File

@ -167,7 +167,7 @@ class JuniorArticle(models.Model):
Survey Options model
"""
# associated junior with the task
junior = models.OneToOneField(Junior, on_delete=models.CASCADE, related_name='juniors_article',
junior = models.ForeignKey(Junior, on_delete=models.CASCADE, related_name='juniors_article',
verbose_name='Junior')
article = models.ForeignKey(Article, on_delete=models.CASCADE, related_name='junior_articles_details')
# article completed"""