Fix 'errors'
- two python comparisons error not passing flake8 anymore - typescript not being able to recognize an object, sending it prechewed
This commit is contained in:
parent
625de1aeb4
commit
10d1209da8
@ -869,7 +869,7 @@ export class MotionDetailComponent extends BaseViewComponent implements OnInit {
|
||||
)
|
||||
.subscribe(id => {
|
||||
this.contentForm.patchValue({
|
||||
workflow_id: parseInt(id, 10)
|
||||
workflow_id: parseInt(id as string, 10)
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ def add_permission_to_groups_based_on_existing_permission(
|
||||
codename=codename, content_type__in=content_type
|
||||
)
|
||||
|
||||
if len(base_perm) is 1 and len(content_type) is 1:
|
||||
if len(base_perm) == 1 and len(content_type) == 1:
|
||||
# get the actual content type and base permission
|
||||
base_perm = base_perm.get()
|
||||
content_type = content_type.get()
|
||||
|
Loading…
Reference in New Issue
Block a user