Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
16cadd40
Commit
16cadd40
authored
Jan 03, 2013
by
Giorgos Korfiatis
Browse files
Remove foreign key constraints from ProjectMembershipHistory
parent
aab0b659
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/migrations/0047_auto__chg_field_projectmembershiphistory_project__chg_field_projectmem.py
0 → 100644
View file @
16cadd40
This diff is collapsed.
Click to expand it.
snf-astakos-app/astakos/im/models.py
View file @
16cadd40
...
...
@@ -1476,8 +1476,8 @@ class ProjectMembership(models.Model):
history_item
=
ProjectMembershipHistory
(
serial
=
self
.
id
,
person
=
self
.
person
,
project
=
self
.
project
,
person
=
self
.
person
.
uuid
,
project
=
self
.
project
_id
,
date
=
date
or
datetime
.
now
(),
reason
=
reason
)
history_item
.
save
()
...
...
@@ -1708,8 +1708,8 @@ class ProjectMembershipHistory(models.Model):
reasons_list
=
[
'ACCEPT'
,
'REJECT'
,
'REMOVE'
]
reasons
=
dict
((
k
,
v
)
for
v
,
k
in
enumerate
(
reasons_list
))
person
=
models
.
ForeignKey
(
AstakosUser
)
project
=
models
.
ForeignKey
(
Project
)
person
=
models
.
CharField
(
max_length
=
255
)
project
=
models
.
BigIntegerField
(
)
date
=
models
.
DateField
(
default
=
datetime
.
now
)
reason
=
models
.
IntegerField
()
serial
=
models
.
BigIntegerField
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment