{"action":"created","issue":{"url":"https://api.github.com/repos/edoburu/fluentcms-emailtemplates/issues/1","labels_url":"https://api.github.com/repos/edoburu/fluentcms-emailtemplates/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/edoburu/fluentcms-emailtemplates/issues/1/comments","events_url":"https://api.github.com/repos/edoburu/fluentcms-emailtemplates/issues/1/events","html_url":"https://github.com/edoburu/fluentcms-emailtemplates/issues/1","id":129674824,"number":1,"title":"Custom User models","user":{"login":"bashu","id":144783,"avatar_url":"https://avatars.githubusercontent.com/u/144783?v=3","gravatar_id":"","url":"https://api.github.com/users/bashu","html_url":"https://github.com/bashu","followers_url":"https://api.github.com/users/bashu/followers","following_url":"https://api.github.com/users/bashu/following{/other_user}","gists_url":"https://api.github.com/users/bashu/gists{/gist_id}","starred_url":"https://api.github.com/users/bashu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bashu/subscriptions","organizations_url":"https://api.github.com/users/bashu/orgs","repos_url":"https://api.github.com/users/bashu/repos","events_url":"https://api.github.com/users/bashu/events{/privacy}","received_events_url":"https://api.github.com/users/bashu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-29T06:01:03Z","updated_at":"2016-01-29T06:07:24Z","closed_at":"2016-01-29T06:07:24Z","body":"```python\r\nTraceback (most recent call last):\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py\", line 85, in run\r\n    self.result = application(self.environ, self.start_response)\r\n  File \"/Users/bashu/.virtualenvs/ifacca/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py\", line 64, in __call__\r\n    return self.application(environ, start_response)\r\n  File \"/Users/bashu/.virtualenvs/ifacca/lib/python2.7/site-packages/django/core/handlers/wsgi.py\", line 187, in __call__\r\n    response = self.get_response(request)\r\n  File \"/Users/bashu/.virtualenvs/ifacca/lib/python2.7/site-packages/django/core/handlers/base.py\", line 199, in get_response\r\n    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())\r\n  File \"/Users/bashu/.virtualenvs/ifacca/lib/python2.7/site-packages/django/core/handlers/base.py\", line 111, in get_response\r\n    response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n  File \"/Users/bashu/.virtualenvs/ifacca/lib/python2.7/site-packages/django/utils/decorators.py\", line 105, in _wrapped_view\r\n    response = view_func(request, *args, **kwargs)\r\n  File \"/Users/bashu/.virtualenvs/ifacca/lib/python2.7/site-packages/django/views/decorators/cache.py\", line 52, in _wrapped_view_func\r\n    response = view_func(request, *args, **kwargs)\r\n  File \"/Users/bashu/.virtualenvs/ifacca/lib/python2.7/site-packages/django/contrib/admin/sites.py\", line 206, in inner\r\n    return view(request, *args, **kwargs)\r\n  File \"/Users/bashu/.virtualenvs/ifacca/lib/python2.7/site-packages/django/views/generic/base.py\", line 69, in view\r\n    return self.dispatch(request, *args, **kwargs)\r\n  File \"/Users/bashu/.virtualenvs/ifacca/lib/python2.7/site-packages/django/utils/decorators.py\", line 29, in _wrapper\r\n    return bound_func(*args, **kwargs)\r\n  File \"/Users/bashu/.virtualenvs/ifacca/lib/python2.7/site-packages/django/contrib/auth/decorators.py\", line 21, in _wrapped_view\r\n    return view_func(request, *args, **kwargs)\r\n  File \"/Users/bashu/.virtualenvs/ifacca/lib/python2.7/site-packages/django/utils/decorators.py\", line 25, in bound_func\r\n    return func.__get__(self, type(self))(*args2, **kwargs2)\r\n  File \"/Users/bashu/.virtualenvs/ifacca/lib/python2.7/site-packages/fluentcms_emailtemplates/views.py\", line 18, in dispatch\r\n    return super(StaffMemberRequiredMixin, self).dispatch(request, *args, **kwargs)\r\n  File \"/Users/bashu/.virtualenvs/ifacca/lib/python2.7/site-packages/django/views/generic/base.py\", line 87, in dispatch\r\n    return handler(request, *args, **kwargs)\r\n  File \"/Users/bashu/.virtualenvs/ifacca/lib/python2.7/site-packages/django/views/generic/detail.py\", line 115, in get\r\n    context = self.get_context_data(object=self.object)\r\n  File \"/Users/bashu/.virtualenvs/ifacca/lib/python2.7/site-packages/fluentcms_emailtemplates/views.py\", line 33, in get_context_data\r\n    user=self.request.user,\r\n  File \"/Users/bashu/.virtualenvs/ifacca/lib/python2.7/site-packages/fluentcms_emailtemplates/rendering.py\", line 176, in render_email_template\r\n    'first_name': context_user.first_name if context_user else '',\r\n  File \"/Users/bashu/.virtualenvs/ifacca/lib/python2.7/site-packages/django/utils/functional.py\", line 225, in inner\r\n    return func(self._wrapped, *args)\r\nAttributeError: 'User' object has no attribute 'first_name'\r\n```"},"comment":{"url":"https://api.github.com/repos/edoburu/fluentcms-emailtemplates/issues/comments/176592333","html_url":"https://github.com/edoburu/fluentcms-emailtemplates/issues/1#issuecomment-176592333","issue_url":"https://api.github.com/repos/edoburu/fluentcms-emailtemplates/issues/1","id":176592333,"user":{"login":"bashu","id":144783,"avatar_url":"https://avatars.githubusercontent.com/u/144783?v=3","gravatar_id":"","url":"https://api.github.com/users/bashu","html_url":"https://github.com/bashu","followers_url":"https://api.github.com/users/bashu/followers","following_url":"https://api.github.com/users/bashu/following{/other_user}","gists_url":"https://api.github.com/users/bashu/gists{/gist_id}","starred_url":"https://api.github.com/users/bashu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bashu/subscriptions","organizations_url":"https://api.github.com/users/bashu/orgs","repos_url":"https://api.github.com/users/bashu/repos","events_url":"https://api.github.com/users/bashu/events{/privacy}","received_events_url":"https://api.github.com/users/bashu/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T06:07:24Z","updated_at":"2016-01-29T06:07:24Z","body":"nevermind, I have fixed by adding first_name, last_name properties"}}