django-admin-views
django-admin-views copied to clipboard
admin_views_install_templates command: TypeError: 'set' object does not support indexing
When running manage.py admin_views_install_templates, template_dirs is a set which cannot be indexed by [].
$ ./manage.py admin_views_install_templates
Traceback (most recent call last):
File "./manage.py", line 10, in
Since this line is invoked in case when there is only one template directory, you can safely call:
dest_dir = os.path.join(template_dirs.pop(), 'admin/')
instead.