Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
synnefo
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
synnefo
Commits
615de8f9
Commit
615de8f9
authored
12 years ago
by
Giorgos Korfiatis
Browse files
Options
Downloads
Patches
Plain Diff
quotaholder: Explicitly set commission's issue_time
Avoid function call as a default value in model.
parent
0114e945
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
snf-astakos-app/astakos/quotaholder/callpoint.py
+3
-1
3 additions, 1 deletion
snf-astakos-app/astakos/quotaholder/callpoint.py
snf-astakos-app/astakos/quotaholder/models.py
+1
-1
1 addition, 1 deletion
snf-astakos-app/astakos/quotaholder/models.py
with
4 additions
and
2 deletions
snf-astakos-app/astakos/quotaholder/callpoint.py
+
3
−
1
View file @
615de8f9
...
@@ -164,7 +164,9 @@ def issue_commission(clientkey, provisions, name="", force=False):
...
@@ -164,7 +164,9 @@ def issue_commission(clientkey, provisions, name="", force=False):
operations
.
revert
()
operations
.
revert
()
raise
raise
commission
=
Commission
.
objects
.
create
(
clientkey
=
clientkey
,
name
=
name
)
commission
=
Commission
.
objects
.
create
(
clientkey
=
clientkey
,
name
=
name
,
issue_time
=
now
())
for
(
holder
,
source
,
resource
),
quantity
in
provisions_to_create
:
for
(
holder
,
source
,
resource
),
quantity
in
provisions_to_create
:
Provision
.
objects
.
create
(
serial
=
commission
,
Provision
.
objects
.
create
(
serial
=
commission
,
holder
=
holder
,
holder
=
holder
,
...
...
This diff is collapsed.
Click to expand it.
snf-astakos-app/astakos/quotaholder/models.py
+
1
−
1
View file @
615de8f9
...
@@ -65,7 +65,7 @@ class Commission(Model):
...
@@ -65,7 +65,7 @@ class Commission(Model):
serial
=
AutoField
(
primary_key
=
True
)
serial
=
AutoField
(
primary_key
=
True
)
name
=
CharField
(
max_length
=
4096
,
default
=
""
)
name
=
CharField
(
max_length
=
4096
,
default
=
""
)
clientkey
=
CharField
(
max_length
=
4096
,
null
=
False
)
clientkey
=
CharField
(
max_length
=
4096
,
null
=
False
)
issue_time
=
CharField
(
max_length
=
24
,
default
=
now
)
issue_time
=
CharField
(
max_length
=
24
)
objects
=
ForUpdateManager
()
objects
=
ForUpdateManager
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment