SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
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
67acfeba
Commit
67acfeba
authored
6 years ago
by
Jean-Sébastien Caux
Browse files
Options
Downloads
Patches
Plain Diff
Debug attachment view
parent
d8bd0663
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
finances/admin.py
+11
-2
11 additions, 2 deletions
finances/admin.py
finances/views.py
+5
-3
5 additions, 3 deletions
finances/views.py
with
16 additions
and
5 deletions
finances/admin.py
+
11
−
2
View file @
67acfeba
...
...
@@ -4,9 +4,18 @@ __license__ = "AGPL v3"
from
django.contrib
import
admin
from
.models
import
Subsidy
,
WorkLog
from
.models
import
Subsidy
,
SubsidyAttachment
,
WorkLog
admin
.
site
.
register
(
Subsidy
)
class
SubsidyAttachmentInline
(
admin
.
TabularInline
):
model
=
SubsidyAttachment
class
SubsidyAdmin
(
admin
.
ModelAdmin
):
inlines
=
[
SubsidyAttachmentInline
,]
admin
.
site
.
register
(
Subsidy
,
SubsidyAdmin
)
admin
.
site
.
register
(
WorkLog
)
This diff is collapsed.
Click to expand it.
finances/views.py
+
5
−
3
View file @
67acfeba
...
...
@@ -2,18 +2,20 @@ __copyright__ = "Copyright © Stichting SciPost (SciPost Foundation)"
__license__
=
"
AGPL v3
"
import
mimetypes
from
django.contrib
import
messages
from
django.contrib.auth.decorators
import
permission_required
from
django.contrib.auth.mixins
import
LoginRequiredMixin
from
django.core.urlresolvers
import
reverse_lazy
from
django.http
import
Http404
from
django.shortcuts
import
render
from
django.http
import
Http404
,
HttpResponse
from
django.shortcuts
import
get_object_or_404
,
render
from
django.views.generic.detail
import
DetailView
from
django.views.generic.edit
import
CreateView
,
UpdateView
,
DeleteView
from
django.views.generic.list
import
ListView
from
.forms
import
SubsidyForm
,
LogsFilter
from
.models
import
Subsidy
,
WorkLog
from
.models
import
Subsidy
,
SubsidyAttachment
,
WorkLog
from
.utils
import
slug_to_id
from
scipost.mixins
import
PermissionsMixin
...
...
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