SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
119
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
SciPost
SciPost
Commits
a1768a22
Commit
a1768a22
authored
6 years ago
by
Jean-Sébastien Caux
Browse files
Options
Downloads
Patches
Plain Diff
Polish up
parent
f51e8185
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
finances/models.py
+3
-3
3 additions, 3 deletions
finances/models.py
with
3 additions
and
3 deletions
finances/models.py
+
3
−
3
View file @
a1768a22
...
...
@@ -12,7 +12,7 @@ from django.urls import reverse
from
django.utils
import
timezone
from
django.utils.html
import
format_html
from
.constants
import
SUBSIDY_TYPES
,
SUBSIDY_STATUS
from
.constants
import
SUBSIDY_TYPES
,
SUBSIDY_TYPE_SPONSORSHIPAGREEMENT
,
SUBSIDY_STATUS
from
.utils
import
id_to_slug
from
scipost.storage
import
SecureFileStorage
...
...
@@ -58,9 +58,9 @@ class Subsidy(models.Model):
@property
def
renewal_action_date
(
self
):
if
self
.
date_until
:
if
self
.
date_until
and
self
.
subsidy_type
==
SUBSIDY_TYPE_SPONSORSHIPAGREEMENT
:
return
self
.
date_until
-
datetime
.
timedelta
(
days
=
122
)
return
None
return
'
-
'
class
SubsidyAttachment
(
models
.
Model
):
...
...
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