Commit 16cadd40 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Remove foreign key constraints from ProjectMembershipHistory

parent aab0b659
...@@ -1476,8 +1476,8 @@ class ProjectMembership(models.Model): ...@@ -1476,8 +1476,8 @@ class ProjectMembership(models.Model):
history_item = ProjectMembershipHistory( history_item = ProjectMembershipHistory(
serial=self.id, serial=self.id,
person=self.person, person=self.person.uuid,
project=self.project, project=self.project_id,
date=date or datetime.now(), date=date or datetime.now(),
reason=reason) reason=reason)
history_item.save() history_item.save()
...@@ -1708,8 +1708,8 @@ class ProjectMembershipHistory(models.Model): ...@@ -1708,8 +1708,8 @@ class ProjectMembershipHistory(models.Model):
reasons_list = ['ACCEPT', 'REJECT', 'REMOVE'] reasons_list = ['ACCEPT', 'REJECT', 'REMOVE']
reasons = dict((k, v) for v, k in enumerate(reasons_list)) reasons = dict((k, v) for v, k in enumerate(reasons_list))
person = models.ForeignKey(AstakosUser) person = models.CharField(max_length=255)
project = models.ForeignKey(Project) project = models.BigIntegerField()
date = models.DateField(default=datetime.now) date = models.DateField(default=datetime.now)
reason = models.IntegerField() reason = models.IntegerField()
serial = models.BigIntegerField() serial = models.BigIntegerField()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment