Add keyword arguments to CT get_for_model

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-05-10 00:39:20 -04:00
parent 680a7b6ae1
commit 76b75af1c2
6 changed files with 10 additions and 10 deletions

View File

@@ -21,7 +21,7 @@ def get_kwargs_factory(variable_name):
)
content_type = ContentType.objects.get_for_model(
context[variable_name]
model=context[variable_name]
)
return {
'app_label': '"{}"'.format(content_type.app_label),