SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit a4396307 authored by Jorran de Wit's avatar Jorran de Wit Committed by Jean-Sébastien Caux
Browse files

Foreignkey assignment the save way

parent 9a72b491
No related branches found
No related tags found
No related merge requests found
......@@ -245,7 +245,7 @@ class CitationNotification(models.Model):
class AuthorshipClaim(models.Model):
claimant = models.ForeignKey(Contributor,
claimant = models.ForeignKey('scipost.Contributor',
on_delete=models.CASCADE,
related_name='claimant')
publication = models.ForeignKey('journals.Publication',
......@@ -260,7 +260,7 @@ class AuthorshipClaim(models.Model):
thesislink = models.ForeignKey('theses.ThesisLink',
on_delete=models.CASCADE,
blank=True, null=True)
vetted_by = models.ForeignKey(Contributor,
vetted_by = models.ForeignKey('scipost.Contributor',
on_delete=models.CASCADE,
blank=True, null=True)
status = models.SmallIntegerField(choices=AUTHORSHIP_CLAIM_STATUS,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment