{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/c271347d0b06d4c5468aad4b5545d84f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c271347d0b06d4c5468aad4b5545d84f","url":"https://api.github.com/users/ksnabb","login":"ksnabb","id":278210},"milestone":{"state":"open","open_issues":4,"url":"https://api.github.com/repos/geonition/django_auth/milestones/1","due_on":null,"creator":{"avatar_url":"https://secure.gravatar.com/avatar/c271347d0b06d4c5468aad4b5545d84f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c271347d0b06d4c5468aad4b5545d84f","url":"https://api.github.com/users/ksnabb","login":"ksnabb","id":278210},"title":"version 1.0.x","description":"Put here all the tickets related to the first 1.0.x versions of the app. e.g. bug reports etc..","number":1,"closed_issues":1,"created_at":"2011-08-19T08:54:08Z"},"assignee":null,"updated_at":"2011-11-08T09:44:32Z","labels":[],"closed_at":null,"comments":4,"url":"https://api.github.com/repos/geonition/django_auth/issues/8","body":"Check out where this error comes from,, \r\n\r\nTraceback (most recent call last):\r\n\r\n  File \"/usr/lib/python2.6/site-packages/Django-1.3.1-py2.6.egg/django/core/handlers/base.py\", line 111, in get_response\r\n    response = callback(request, *callback_args, **callback_kwargs)\r\n\r\n  File \"/usr/lib/python2.6/site-packages/auth-1.0.0-py2.6.egg/auth/views.py\", line 281, in session\r\n    user = django_authenticate(username=str(new_user_id), password='passwd')\r\n\r\n  File \"/usr/lib/python2.6/site-packages/Django-1.3.1-py2.6.egg/django/contrib/auth/__init__.py\", line 55, in authenticate\r\n    user = backend.authenticate(**credentials)\r\n\r\n  File \"/usr/lib/python2.6/site-packages/Django-1.3.1-py2.6.egg/django/contrib/auth/backends.py\", line 17, in authenticate\r\n    user = User.objects.get(username=username)\r\n\r\n  File \"/usr/lib/python2.6/site-packages/Django-1.3.1-py2.6.egg/django/db/models/manager.py\", line 132, in get\r\n    return self.get_query_set().get(*args, **kwargs)\r\n\r\n  File \"/usr/lib/python2.6/site-packages/Django-1.3.1-py2.6.egg/django/db/models/query.py\", line 344, in get\r\n    num = len(clone)\r\n\r\n  File \"/usr/lib/python2.6/site-packages/Django-1.3.1-py2.6.egg/django/db/models/query.py\", line 82, in __len__\r\n    self._result_cache = list(self.iterator())\r\n\r\n  File \"/usr/lib/python2.6/site-packages/Django-1.3.1-py2.6.egg/django/db/models/query.py\", line 273, in iterator\r\n    for row in compiler.results_iter():\r\n\r\n  File \"/usr/lib/python2.6/site-packages/Django-1.3.1-py2.6.egg/django/db/models/sql/compiler.py\", line 680, in results_iter\r\n    for rows in self.execute_sql(MULTI):\r\n\r\n  File \"/usr/lib/python2.6/site-packages/Django-1.3.1-py2.6.egg/django/db/models/sql/compiler.py\", line 735, in execute_sql\r\n    cursor.execute(sql, params)\r\n\r\n  File \"/usr/lib/python2.6/site-packages/Django-1.3.1-py2.6.egg/django/db/backends/postgresql_psycopg2/base.py\", line 44, in execute\r\n    return self.cursor.execute(query, args)\r\n\r\nDatabaseError: current transaction is aborted, commands ignored until end of transaction block\r\n\r\n","html_url":"https://github.com/geonition/django_auth/issues/8","title":"Database Error thrown when users authenticate concurrently","number":8,"id":1784418,"created_at":"2011-09-30T09:49:42Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/c271347d0b06d4c5468aad4b5545d84f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c271347d0b06d4c5468aad4b5545d84f","url":"https://api.github.com/users/ksnabb","login":"ksnabb","id":278210},"updated_at":"2011-11-08T09:44:32Z","url":"https://api.github.com/repos/geonition/django_auth/issues/comments/2665519","body":"A good idea might also be to use a time hash in the username in addition to the aggregated count of the user id.","id":2665519,"created_at":"2011-11-08T09:44:32Z"}}