Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-deposit
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
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
Antoine R. Dumont
swh-deposit
Commits
84be8dc8
Verified
Commit
84be8dc8
authored
7 years ago
by
Antoine R. Dumont
Browse files
Options
Downloads
Patches
Plain Diff
swh.deposit.signal: Saving deposit triggers the signal
And not when saving a deposit request. Related T857
parent
39e65899
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swh/deposit/signals.py
+2
-2
2 additions, 2 deletions
swh/deposit/signals.py
with
2 additions
and
2 deletions
swh/deposit/signals.py
+
2
−
2
View file @
84be8dc8
...
...
@@ -18,11 +18,11 @@ import datetime
from
django.db.models.signals
import
post_save
from
django.dispatch
import
receiver
from
.models
import
Deposit
Request
from
.models
import
Deposit
from
.config
import
SWHDefaultConfig
@receiver
(
post_save
,
sender
=
Deposit
Request
)
@receiver
(
post_save
,
sender
=
Deposit
)
def
deposit_on_status_ready_for_check
(
sender
,
instance
,
created
,
raw
,
using
,
update_fields
,
**
kwargs
):
"""
Check the status is ready for check.
...
...
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