Merge pull request #4212 from MaximilianKrambach/travisfixes

Fix travis errors
This commit is contained in:
Sean 2019-01-30 12:29:22 +01:00 committed by GitHub
commit ec8fa3eb91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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)
});
});
}

View File

@ -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()