[Mayan EDMS: 1436] ERROR 500: When viewing all versions for a document from a non-admin account
A Mayan-EDMS and Django newbie here. We are using Mayan-EDMS v2.1.3 on the default production setting.
I was trying to upload a new version of a document. No issue using the admin user but encountered the hated error 500 when using a non-admin user to upload a new version of the same document.
Looking through this forum, I went went ahead to turn on the debug flag in production.py and the following excerpt of the error details was shown when clicking on the versions link on the right panel for the document.
'Document' object has no attribute 'document'
I was not able to find django/Mayan specific debug logs in the usual places i.e. /var/log/...
What I found in the postgresql log was (formatted for ease of reading I hope):
2016-09-28 08:36:53 EDT STATEMENT:
SELECT (date_trunc('month', date_added)) AS "d",
COUNT("documents_documentversion"."id") AS "agg"
INNER JOIN "documents_document"
ON ( "documents_documentversion"."document_id" = "documents_document"."id" )
WHERE "documents_document"."date_added" BETWEEN '2016-01-01T00:00:00+00:00'::timestamptz AND '2016-09-30T23:59:59.999999+00:00'::timestamptz GROUP BY (date_trunc('month', document__date_added))
2016-09-28 08:00:00 EDT ERROR: column "document_version__document__date_added" does not exist at character 29
I tried pulling the source from GitLab and found "document_version_document__dat_added" in mayan-edms/mayan/apps/documents/statistics.py
Is it because I am using out of dates models?
Would really appreciate pointers on how I can resolve this issue.
Thanks in advance!
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.