Complete conversion of download views to CBV views using django-downloadview.

This also removes dependency on the filetransfers library.
This commit is contained in:
Roberto Rosario
2016-10-31 01:00:35 -04:00
parent 24ef702e9c
commit 6e3d99670c
37 changed files with 437 additions and 340 deletions
+3 -1
View File
@@ -13,7 +13,9 @@ from .permissions import (
def get_kwargs_factory(variable_name):
def get_kwargs(context):
ContentType = apps.get_model(app_label='django', model_name='ContentType')
ContentType = apps.get_model(
app_label='contenttypes', model_name='ContentType'
)
content_type = ContentType.objects.get_for_model(
context[variable_name]