-
Notifications
You must be signed in to change notification settings - Fork 27
fix: Issue when delete all tags on import [FC-0036] #135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
fb8d161
b1c4cc9
e23f542
e91e735
6181f7c
0b09872
f2df68b
f2a341d
9030b1e
fa42366
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -136,7 +136,7 @@ def generate_actions( | |
|
|
||
| if replace: | ||
| tags_for_delete = { | ||
| tag.external_id: tag for tag in self.taxonomy.tag_set.all() | ||
| tag.external_id or tag.id: tag for tag in self.taxonomy.tag_set.all() | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because of this change, I think we also need to change the code below: Context: this is to prevent updating a tag that could already be deleted The following test (to be put in
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch! Thanks!
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| } | ||
|
|
||
| for tag in tags: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.