Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nk20
Manage
Activity
Members
Labels
Plan
Issues
32
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
BDE
nk20
Commits
48eb0749
Commit
48eb0749
authored
4 years ago
by
ynerant
Browse files
Options
Downloads
Patches
Plain Diff
Users can create a past activity
parent
8ac551e1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!104
Beta
Pipeline
#8523
passed with warnings with stages
in 5 minutes and 38 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
apps/activity/forms.py
+0
-6
0 additions, 6 deletions
apps/activity/forms.py
locale/de/LC_MESSAGES/django.po
+0
-4
0 additions, 4 deletions
locale/de/LC_MESSAGES/django.po
locale/fr/LC_MESSAGES/django.po
+0
-4
0 additions, 4 deletions
locale/fr/LC_MESSAGES/django.po
with
0 additions
and
14 deletions
apps/activity/forms.py
+
0
−
6
View file @
48eb0749
...
...
@@ -15,12 +15,6 @@ from .models import Activity, Guest
class
ActivityForm
(
forms
.
ModelForm
):
def
clean_date_start
(
self
):
date_start
=
self
.
cleaned_data
[
"
date_start
"
]
if
not
self
.
instance
.
pk
and
date_start
<
timezone
.
now
():
self
.
add_error
(
"
date_start
"
,
_
(
"
You can
'
t create a past activity.
"
))
return
date_start
def
clean_date_end
(
self
):
date_end
=
self
.
cleaned_data
[
"
date_end
"
]
date_start
=
self
.
cleaned_data
[
"
date_start
"
]
...
...
This diff is collapsed.
Click to expand it.
locale/de/LC_MESSAGES/django.po
+
0
−
4
View file @
48eb0749
...
...
@@ -23,10 +23,6 @@ msgstr ""
msgid "activity"
msgstr ""
#: apps/activity/forms.py:21
msgid "You can't create a past activity."
msgstr ""
#: apps/activity/forms.py:28 apps/activity/models.py:127
msgid "The end date must be after the start date."
msgstr ""
...
...
This diff is collapsed.
Click to expand it.
locale/fr/LC_MESSAGES/django.po
+
0
−
4
View file @
48eb0749
...
...
@@ -23,10 +23,6 @@ msgstr ""
msgid "activity"
msgstr "activité"
#: apps/activity/forms.py:21
msgid "You can't create a past activity."
msgstr "Vous ne pouvez pas créer une activité dans le passé."
#: apps/activity/forms.py:28 apps/activity/models.py:127
msgid "The end date must be after the start date."
msgstr "La date de fin doit être après celle de début."
...
...
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