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
9774e224
Commit
9774e224
authored
Feb 28, 2013
by
Giorgos Korfiatis
Browse files
wip Rename entity into holder
parent
d99e79e2
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/quotaholder/callpoint.py
View file @
9774e224
This diff is collapsed.
Click to expand it.
snf-astakos-app/astakos/quotaholder/models.py
View file @
9774e224
...
...
@@ -51,7 +51,7 @@ class Policy(Model):
class
Holding
(
Model
):
entity
=
CharField
(
max_length
=
4096
,
db_index
=
True
)
holder
=
CharField
(
max_length
=
4096
,
db_index
=
True
)
resource
=
CharField
(
max_length
=
4096
,
null
=
False
)
policy
=
ForeignKey
(
Policy
,
to_field
=
'policy'
)
...
...
@@ -69,7 +69,7 @@ class Holding(Model):
objects
=
ForUpdateManager
()
class
Meta
:
unique_together
=
((
'
entity
'
,
'resource'
),)
unique_together
=
((
'
holder
'
,
'resource'
),)
from
datetime
import
datetime
...
...
@@ -81,7 +81,7 @@ def now():
class
Commission
(
Model
):
serial
=
AutoField
(
primary_key
=
True
)
entity
=
CharField
(
max_length
=
4096
,
db_index
=
True
)
holder
=
CharField
(
max_length
=
4096
,
db_index
=
True
)
name
=
CharField
(
max_length
=
4096
,
null
=
True
)
clientkey
=
CharField
(
max_length
=
4096
,
null
=
False
)
issue_time
=
CharField
(
max_length
=
24
,
default
=
now
)
...
...
@@ -94,7 +94,7 @@ class Provision(Model):
to_field
=
'serial'
,
related_name
=
'provisions'
)
entity
=
CharField
(
max_length
=
4096
,
db_index
=
True
)
holder
=
CharField
(
max_length
=
4096
,
db_index
=
True
)
resource
=
CharField
(
max_length
=
4096
,
null
=
False
)
quantity
=
intDecimalField
()
...
...
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