Hi, We are working on adding a new review detail field, called project. We have defined our project model and mapped the reviewrequest detail and reviewrequest detail draft models with foreignkey relation. But while selecting the project from review details page, we are getting assertion error. We have done code changes in resources.py,reviews.js to call draft api on selecting project . Any clue to resolve this error? here is my error trace. AssertionError at /api/review-requests/1/draft/
No exception supplied Request Method:GETRequest URL: http://127.0.0.1:8050/api/review-requests/1/draft/Django Version:1.4.3Exception Type:AssertionErrorException Location:/usr/local/lib/python2.7/dist-packages/Djblets-0.7.7-py2.7.egg/djblets/webapi/resources.py in serialize_object, line 917Python Executable:/usr/bin/python2.7 Traceback: > > File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" >> in get_response > > 111. response = callback(request, >> *callback_args, **callback_kwargs) > > File >> "/usr/local/lib/python2.7/dist-packages/django/views/decorators/cache.py" >> in _wrapped_view_func > > 89. response = view_func(request, *args, **kwargs) > > File >> "/usr/local/lib/python2.7/dist-packages/django/views/decorators/vary.py" in >> inner_func > > 19. response = func(*args, **kwargs) > > File >> "/usr/local/lib/python2.7/dist-packages/Djblets-0.7.7-py2.7.egg/djblets/webapi/resources.py" >> >> in __call__ > > 461. result = view(request, api_format=api_format, *args, >> **kwargs) > > File "/root/Downloads/board/reviewboard/webapi/decorators.py" in _check > > 127. return view_func(*args, **kwargs) > > File >> "/usr/local/lib/python2.7/dist-packages/Djblets-0.7.7-py2.7.egg/djblets/webapi/decorators.py" >> >> in _checklogin > > 88. return view_func(*args, **kwargs) > > File >> "/usr/local/lib/python2.7/dist-packages/Djblets-0.7.7-py2.7.egg/djblets/util/decorators.py" >> >> in _call > > 75. f = augmented_func(*args, **kwargs) > > File "/root/Downloads/board/reviewboard/webapi/decorators.py" in _check > > 32. return view_func(*args, **kwargs) > > File >> "/usr/local/lib/python2.7/dist-packages/Djblets-0.7.7-py2.7.egg/djblets/util/decorators.py" >> >> in _call > > 75. f = augmented_func(*args, **kwargs) > > File >> "/usr/local/lib/python2.7/dist-packages/Djblets-0.7.7-py2.7.egg/djblets/webapi/decorators.py" >> >> in _call > > 62. return view_func(*args, **kwargs) > > File >> "/usr/local/lib/python2.7/dist-packages/Djblets-0.7.7-py2.7.egg/djblets/webapi/resources.py" >> >> in get > > 716. *args, >> **kwargs), > > File >> "/usr/local/lib/python2.7/dist-packages/Djblets-0.7.7-py2.7.egg/djblets/webapi/resources.py" >> >> in serialize_object > > 917. assert resource > > >> Exception Type: AssertionError at /api/review-requests/1/draft/ > > Exception Value: > > > -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~----------~----~----~----~------~----~------~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.