Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
greg
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
it-bott-integrasjoner
greg
Commits
0f285996
Commit
0f285996
authored
3 years ago
by
Andreas Ellewsen
Browse files
Options
Downloads
Plain Diff
Merge branch 'bugfix/role-singals' into 'master'
Fix bug in signals for roles See merge request
!147
parents
beef72dc
a4ac4414
No related branches found
No related tags found
1 merge request
!147
Fix bug in signals for roles
Pipeline
#100418
passed
3 years ago
Stage: venv update
Stage: tests and linting
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
greg/signals.py
+1
-1
1 addition, 1 deletion
greg/signals.py
with
1 addition
and
1 deletion
greg/signals.py
+
1
−
1
View file @
0f285996
...
...
@@ -133,7 +133,7 @@ def save_notification_callback(sender, instance, created, *args, **kwargs):
if
not
isinstance
(
instance
,
SUPPORTED_MODELS
):
return
# Queue future notifications on start and end date for roles
if
isinstance
(
instance
,
Role
):
if
isinstance
(
instance
,
Role
)
and
hasattr
(
instance
,
"
_changed_fields
"
)
:
if
(
"
start_date
"
in
instance
.
_changed_fields
# pylint: disable=protected-access
and
instance
.
start_date
...
...
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