[Mayan EDMS: 1995] Bug re: EventType model

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Mayan EDMS: 1995] Bug re: EventType model

LeVon Smoker
In the master branch, the events_eventtype table is not created. (This is a git install of the development branch that I switched over to the master branch.

I checked for the "Events/Event types" model on my pip/2.6.4 install using the url http://example.net/admin/events/eventtype/ and get the following error...
(in short:
Exception Value:
'__proxy__' object has no attribute 'label'
Exception Location: /usr/share/mayan-edms/mayan/apps/events/models.py in __str__, line 21)
Traceback:

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner
 
42.             response = get_response(request)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _legacy_get_response
 
249.             response = self._get_response(request)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
 
217.                 response = self.process_exception_by_middleware(e, request)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
 
215.                 response = response.render()

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/response.py" in render
 
109.             self.content = self.rendered_content

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/response.py" in rendered_content
 
86.         content = template.render(context, self._request)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/backends/django.py" in render
 
66.             return self.template.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render
 
208.                     return self._render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in _render
 
199.         return self.nodelist.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render
 
994.                 bit = node.render_annotated(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render_annotated
 
961.             return self.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render
 
174.         return compiled_parent._render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in _render
 
199.         return self.nodelist.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render
 
994.                 bit = node.render_annotated(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render_annotated
 
961.             return self.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render
 
174.         return compiled_parent._render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in _render
 
199.         return self.nodelist.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render
 
994.                 bit = node.render_annotated(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render_annotated
 
961.             return self.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render
 
70.                 result = block.nodelist.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render
 
994.                 bit = node.render_annotated(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render_annotated
 
961.             return self.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render
 
70.                 result = block.nodelist.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render
 
994.                 bit = node.render_annotated(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render_annotated
 
961.             return self.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render
 
70.                 result = block.nodelist.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render
 
994.                 bit = node.render_annotated(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render_annotated
 
961.             return self.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render
 
70.                 result = block.nodelist.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render
 
994.                 bit = node.render_annotated(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render_annotated
 
961.             return self.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/defaulttags.py" in render
 
315.                 return nodelist.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render
 
994.                 bit = node.render_annotated(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render_annotated
 
961.             return self.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/library.py" in render
 
225.         _dict = self.func(*resolved_args, **resolved_kwargs)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/suit/templatetags/suit_list.py" in result_list_with_context
 
196.     res = result_list(cl)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/contrib/admin/templatetags/admin_list.py" in result_list
 
339.             'results': list(results(cl))}

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/contrib/admin/templatetags/admin_list.py" in results
 
315.             yield ResultList(None, items_for_result(cl, res, None))

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/contrib/admin/templatetags/admin_list.py" in __init__
 
306.         super(ResultList, self).__init__(*items)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/contrib/admin/templatetags/admin_list.py" in items_for_result
 
217.             f, attr, value = lookup_field(field_name, result, cl.model_admin)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/contrib/admin/utils.py" in lookup_field
 
290.                 value = attr()

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/utils/six.py" in <lambda>
 
842.         klass.__str__ = lambda self: self.__unicode__().encode('utf-8')

File "/usr/share/mayan-edms/mayan/apps/events/models.py" in __str__
 
21.         return self.get_class().label

Exception Type: AttributeError at /admin/events/eventtype/
Exception Value: '__proxy__' object has no attribute 'label'


--

---
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.
Reply | Threaded
Open this post in threaded view
|

[Mayan EDMS: 1998] Re: Bug re: EventType model

rosarior
Administrator
I'm not able to reproduce the issue. Try:

    make clean

to delete all .pyc files and make sure only new code is executing.



On Thursday, August 10, 2017 at 2:43:49 PM UTC-4, LeVon Smoker wrote:
In the master branch, the events_eventtype table is not created. (This is a git install of the development branch that I switched over to the master branch.

I checked for the "Events/Event types" model on my pip/2.6.4 install using the url <a href="http://example.net/admin/events/eventtype/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fexample.net%2Fadmin%2Fevents%2Feventtype%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFrfsCN78NAMpZSqF9A2nxfCQDOlA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fexample.net%2Fadmin%2Fevents%2Feventtype%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFrfsCN78NAMpZSqF9A2nxfCQDOlA&#39;;return true;">http://example.net/admin/events/eventtype/ and get the following error...
(in short:
Exception Value:
'__proxy__' object has no attribute 'label'
Exception Location: /usr/share/mayan-edms/mayan/apps/events/models.py in __str__, line 21)
Traceback:

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner
 
42.             response = get_response(request)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _legacy_get_response
 
249.             response = self._get_response(request)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
 
217.                 response = self.process_exception_by_middleware(e, request)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
 
215.                 response = response.render()

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/response.py" in render
 
109.             self.content = self.rendered_content

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/response.py" in rendered_content
 
86.         content = template.render(context, self._request)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/backends/django.py" in render
 
66.             return self.template.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render
 
208.                     return self._render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in _render
 
199.         return self.nodelist.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render
 
994.                 bit = node.render_annotated(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render_annotated
 
961.             return self.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render
 
174.         return compiled_parent._render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in _render
 
199.         return self.nodelist.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render
 
994.                 bit = node.render_annotated(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render_annotated
 
961.             return self.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render
 
174.         return compiled_parent._render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in _render
 
199.         return self.nodelist.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render
 
994.                 bit = node.render_annotated(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render_annotated
 
961.             return self.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render
 
70.                 result = block.nodelist.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render
 
994.                 bit = node.render_annotated(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render_annotated
 
961.             return self.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render
 
70.                 result = block.nodelist.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render
 
994.                 bit = node.render_annotated(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render_annotated
 
961.             return self.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render
 
70.                 result = block.nodelist.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render
 
994.                 bit = node.render_annotated(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render_annotated
 
961.             return self.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render
 
70.                 result = block.nodelist.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render
 
994.                 bit = node.render_annotated(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render_annotated
 
961.             return self.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/defaulttags.py" in render
 
315.                 return nodelist.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render
 
994.                 bit = node.render_annotated(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/base.py" in render_annotated
 
961.             return self.render(context)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/template/library.py" in render
 
225.         _dict = self.func(*resolved_args, **resolved_kwargs)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/suit/templatetags/suit_list.py" in result_list_with_context
 
196.     res = result_list(cl)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/contrib/admin/templatetags/admin_list.py" in result_list
 
339.             'results': list(results(cl))}

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/contrib/admin/templatetags/admin_list.py" in results
 
315.             yield ResultList(None, items_for_result(cl, res, None))

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/contrib/admin/templatetags/admin_list.py" in __init__
 
306.         super(ResultList, self).__init__(*items)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/contrib/admin/templatetags/admin_list.py" in items_for_result
 
217.             f, attr, value = lookup_field(field_name, result, cl.model_admin)

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/contrib/admin/utils.py" in lookup_field
 
290.                 value = attr()

File "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/utils/six.py" in <lambda>
 
842.         klass.__str__ = lambda self: self.__unicode__().encode('utf-8')

File "/usr/share/mayan-edms/mayan/apps/events/models.py" in __str__
 
21.         return self.get_class().label

Exception Type: AttributeError at /admin/events/eventtype/
Exception Value: '__proxy__' object has no attribute 'label'


--

---
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.