Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
site-kwei
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
mediatek
site-kwei
Commits
45ea4c80
Commit
45ea4c80
authored
4 years ago
by
Dorian Lesbre
Browse files
Options
Downloads
Patches
Plain Diff
Better activity editing
parent
f412663d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
home/admin.py
+3
-2
3 additions, 2 deletions
home/admin.py
home/models.py
+1
-1
1 addition, 1 deletion
home/models.py
site_settings/models.py
+2
-0
2 additions, 0 deletions
site_settings/models.py
with
6 additions
and
3 deletions
home/admin.py
+
3
−
2
View file @
45ea4c80
...
...
@@ -29,7 +29,8 @@ class InterludesParticipantAdmin(ExportCsvMixin, admin.ModelAdmin):
@admin.register
(
ActivityList
)
class
ActivityListAdmin
(
ExportCsvMixin
,
admin
.
ModelAdmin
):
"""
option d
'
affichage des choix d
'
activités dans la vue django admin
"""
list_display
=
(
"
participant
"
,
"
priority
"
,
"
ac
tivity
"
,
)
list_display
=
(
"
activity
"
,
"
participant
"
,
"
priority
"
,
"
ac
cepted
"
)
list_filter
=
(
"
activity
"
,
"
participant
"
,)
ordering
=
(
"
participant
"
,
"
priority
"
,)
list_editable
=
(
"
accepted
"
,)
ordering
=
(
"
activity
"
,
"
priority
"
,
"
participant
"
,)
list_per_page
=
200
This diff is collapsed.
Click to expand it.
home/models.py
+
1
−
1
View file @
45ea4c80
...
...
@@ -81,7 +81,7 @@ class ActivityList(models.Model):
activity
=
models
.
ForeignKey
(
InterludesActivity
,
on_delete
=
models
.
CASCADE
,
db_column
=
"
activité
"
)
accepted
=
models
.
BooleanField
(
default
=
False
)
accepted
=
models
.
BooleanField
(
"
Obtenue
"
,
default
=
False
)
class
Meta
:
# couples uniques
...
...
This diff is collapsed.
Click to expand it.
site_settings/models.py
+
2
−
0
View file @
45ea4c80
...
...
@@ -41,6 +41,8 @@ class SiteSettings(SingletonModel):
display_planning
=
models
.
BooleanField
(
"
Afficher le planning
"
,
default
=
False
)
activities_allocated
=
models
.
BooleanField
(
"
Afficher les activités obtenues
"
,
default
=
False
)
@property
def
contact_email_reversed
(
self
):
return
self
.
contact_email
[::
-
1
]
...
...
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