Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
ots
hypha
Commits
c7c07cb0
Commit
c7c07cb0
authored
7 years ago
by
Todd Dembrey
Browse files
Options
Downloads
Patches
Plain Diff
Remove active applications from the history list
parent
61ee4718
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
opentech/apply/dashboard/views.py
+2
-2
2 additions, 2 deletions
opentech/apply/dashboard/views.py
opentech/apply/funds/models.py
+3
-0
3 additions, 0 deletions
opentech/apply/funds/models.py
with
5 additions
and
2 deletions
opentech/apply/dashboard/views.py
+
2
−
2
View file @
c7c07cb0
...
...
@@ -19,10 +19,10 @@ class ApplicantDashboardView(SingleTableView):
table_class
=
SubmissionsTable
def
get_queryset
(
self
):
return
self
.
model
.
objects
.
filter
(
user
=
self
.
request
.
user
)
return
self
.
model
.
objects
.
filter
(
user
=
self
.
request
.
user
)
.
inactive
()
def
get_context_data
(
self
,
**
kwargs
):
my_active_submissions
=
self
.
object_list
.
active
()
my_active_submissions
=
self
.
model
.
objects
.
filter
(
user
=
self
.
request
.
user
)
.
active
()
return
super
().
get_context_data
(
my_active_submissions
=
my_active_submissions
,
...
...
This diff is collapsed.
Click to expand it.
opentech/apply/funds/models.py
+
3
−
0
View file @
c7c07cb0
...
...
@@ -446,6 +446,9 @@ class ApplicationSubmissionQueryset(JSONOrderable):
def
active
(
self
):
return
self
.
filter
(
status__in
=
active_statuses
)
def
inactive
(
self
):
return
self
.
exclude
(
status__in
=
active_statuses
)
class
ApplicationSubmission
(
WorkflowHelpers
,
AbstractFormSubmission
):
field_template
=
'
funds/includes/submission_field.html
'
...
...
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