Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gebenalimert authored Nov 15, 2023
1 parent 27a3d44 commit 95d38b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project/backend/database/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ class Entry(models.Model):
is_theorem_entry = models.BooleanField()
is_final_entry = models.BooleanField(default=False)
is_editable = models.BooleanField(default=True)
creator = models.ForeignKey(Contributor,null=True,blank=True, on_delete = models.CASCADE)
#creator = models.ForeignKey(Contributor,null=True,blank=True, on_delete = models.CASCADE)
entry_number = models.IntegerField()
contributors = models.ManyToManyField(Contributor,related_name="EntryContributors")
#contributors = models.ManyToManyField(Contributor,related_name="EntryContributors")
def set_as_final(self):
self.is_final_entry = True
def set_as_theorem(self):
Expand Down

0 comments on commit 95d38b2

Please sign in to comment.