Attribute error when trying to attach a tag for a user with inadequate permissions
Hi,
First of all version 2 beta looks great. Great work Roberto! This bug is for version 2.0.0b2.
A user is not given permissions through roles to 'Attach tags to document'. The user tries to attach a tag to a document on his home page (since 'Attach tag' is always listed under Actions irrespective of whether the user has permissions or not).
The following error is thrown up: AttributeError at /tags/selection/attach/document/multiple/ 'list' object has no attribute 'model'
Resolution: I figured out that in tags/views.py, you have to change line # 46 to the following: documents = Document.objects.filter(pk__in=[document_id in document_id_list.split(',')])
PS: I could not find the source code for version 2.0.0b2 on gitlab or github to fork and setup a pull request.
Thanks, Ranjith