-
Notifications
You must be signed in to change notification settings - Fork 35
Show command modal when modifying file scan #2095
Conversation
Signed-off-by: Igor Pashev <pashev.igor@gmail.com>
Ok(_) => { | ||
orders.skip(); | ||
Ok(x) => { | ||
let x = command_modal::Input::Commands(vec![Arc::new(x.data.command)]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be unified with other command_model consumers by using fetch_json_data
, but might need significant refactoring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not worth it yet. There is a large seed 0.7 refactor looming, which redoes the fetch layer.
@@ -31,7 +31,7 @@ def dehydrate_locked_item_content_type_id(self, bundle): | |||
if hasattr(locked_item, "content_type"): | |||
return locked_item.content_type.id | |||
else: | |||
return ContentType.objects.get_for_model(locked_item) | |||
return ContentType.objects.get_for_model(locked_item).id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#2090
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting we haven't hit this before, this code has not been changed in 8 years :)
Signed-off-by: Igor Pashev <pashev.igor@gmail.com>
Closes #1762, #2090.
Signed-off-by: Igor Pashev pashev.igor@gmail.com
This change is