{"id": 8320, "created": "2008-08-14 18:20:13", "changetime": "2013-03-11 14:40:48", "last_pulled_from_trac": "2022-03-06 03:41:56.521096", "stage": "Accepted", "status": "closed", "component": "contrib.admin", "type": "Bug", "severity": "Normal", "version": "dev", "resolution": "fixed", "summary": "Admin Transaction Management Error", "description": "When using admin from the trunk [r8346] on Ubuntu I am getting occasional tracebacks like the following. I *appears* only to happen when one of the foreign key fields is changed, or at least I haven't been able to trigger the problem without changing one of them. I am only selecting values using the drop-downs populated from the related models.\r\n\r\nEnvironment:\r\n\r\n * Request Method: POST\r\n * Request URL: http://test.holdenweb.com/admin/accounts/userprofile/14/\r\n * Django Version: 1.0-alpha_2-SVN-8346\r\n * Python Version: 2.4.3\r\n\r\nInstalled Applications:\r\n{{{\r\n#!python\r\n['django.contrib.auth',\r\n 'django.contrib.contenttypes',\r\n 'django.contrib.sessions',\r\n 'django.contrib.sites',\r\n 'django.contrib.admin',\r\n 'pages',\r\n 'grp',\r\n 'contact',\r\n 'registration',\r\n 'accounts']\r\n}}}\r\nInstalled Middleware:\r\n{{{\r\n#!python\r\n('django.middleware.common.CommonMiddleware',\r\n 'django.contrib.sessions.middleware.SessionMiddleware',\r\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\r\n 'django.middleware.doc.XViewMiddleware')\r\n}}}\r\n\r\nTraceback:\r\n{{{\r\nFile \"/home/holdenwe/django-trunk/django/core/handlers/base.py\" in get_response\r\n 86. response = callback(request, *callback_args, **callback_kwargs)\r\nFile \"/home/holdenwe/django-trunk/django/contrib/admin/sites.py\" in root\r\n 172. return self.model_page(request, *url.split('/', 2))\r\nFile \"/home/holdenwe/django-trunk/django/views/decorators/cache.py\" in _wrapped_view_func\r\n 44. response = view_func(request, *args, **kwargs)\r\nFile \"/home/holdenwe/django-trunk/django/contrib/admin/sites.py\" in model_page\r\n 189. return admin_obj(request, rest_of_url)\r\nFile \"/home/holdenwe/django-trunk/django/contrib/admin/options.py\" in __call__\r\n 275. return self.change_view(request, unquote(url))\r\nFile \"/home/holdenwe/django-trunk/django/db/transaction.py\" in _commit_on_success\r\n 251. leave_transaction_management()\r\nFile \"/home/holdenwe/django-trunk/django/db/transaction.py\" in leave_transaction_management\r\n 75. raise TransactionManagementError(\"Transaction managed block ended with pending COMMIT/ROLLBACK\")\r\n\r\nException Type: TransactionManagementError at /admin/accounts/userprofile/14/\r\nException Value: Transaction managed block ended with pending COMMIT/ROLLBACK\r\n}}}\r\n", "owner": "aaugustin", "reporter": "holdenweb", "keywords": "admin transaction", "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8301, "created": "2008-08-14 00:20:04", "changetime": "2011-09-28 16:12:17", "last_pulled_from_trac": "2022-03-06 03:41:53.398614", "stage": "Accepted", "status": "closed", "component": "Documentation", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "ModelFormSet documentation is very confusing", "description": "It's very hard to understand the ModelFormSet documentation. Also ModelFormSet works directly from a Model, whereas FormSet works from a form. It would be helpful to give a more concrete example, including showing how to set which model fields are part of the form (ala Meta class).", "owner": "brosner", "reporter": "anonymous", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8324, "created": "2008-08-14 20:34:49", "changetime": "2011-09-28 16:12:16", "last_pulled_from_trac": "2022-03-06 03:41:57.130434", "stage": "Accepted", "status": "closed", "component": "contrib.admin", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "admin list display is broken", "description": "[8352] breaks simple list display. to reproduce, \r\n\r\n{{{\r\n# models.py\r\nclass Site(models.Model):\r\n\tname = models.CharField(max_length=255)\r\n\t\r\n\tdef __unicode__(self):\r\n\t\treturn self.name\r\n\r\n# admin.py\r\nfrom django.contrib import admin\r\nfrom visitdb import models as visitdb\r\n\r\nadmin.site.register(visitdb.Site)\r\n}}}\r\n\r\ngo to /admin, and click on Site.\r\n\r\n{{{\r\nEnvironment:\r\n\r\nRequest Method: GET\r\nRequest URL: http://localhost:8000/django-admin/visitdb/site/\r\nDjango Version: 1.0-alpha_2-SVN-8352\r\nPython Version: 2.5.2\r\nInstalled Applications:\r\n['django.contrib.auth',\r\n 'django.contrib.contenttypes',\r\n 'django.contrib.sessions',\r\n 'django.contrib.sites',\r\n 'django.contrib.admin',\r\n 'django.contrib.humanize',\r\n 'visitdb',\r\n 'photologue']\r\nInstalled Middleware:\r\n('visitdb.middleware.RequestAttributeSetup',\r\n 'django.middleware.common.CommonMiddleware',\r\n 'django.contrib.sessions.middleware.SessionMiddleware',\r\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\r\n 'django.middleware.doc.XViewMiddleware',\r\n 'visitdb.middleware.StandardViewKwargsMiddleware')\r\n\r\n\r\nTemplate error:\r\nIn template /home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/contrib/admin/templates/admin/change_list.html, error at line 34\r\n Caught an exception while rendering: local variable 'attr' referenced before assignment\r\n 24 : {% if cl.has_filters %}\r\n\r\n\r\n 25 :
\r\n\r\n\r\n 26 :

{% trans 'Filter' %}

\r\n\r\n\r\n 27 : {% for spec in cl.filter_specs %}\r\n\r\n\r\n 28 : {% admin_list_filter cl spec %}\r\n\r\n\r\n 29 : {% endfor %}\r\n\r\n\r\n 30 :
\r\n\r\n\r\n 31 : {% endif %}\r\n\r\n\r\n 32 : {% endblock %}\r\n\r\n\r\n 33 : \r\n\r\n\r\n 34 : {% block result_list %} {% result_list cl %} {% endblock %}\r\n\r\n\r\n 35 : {% block pagination %}{% pagination cl %}{% endblock %}\r\n\r\n\r\n 36 : \r\n\r\n\r\n 37 : \r\n\r\n\r\n 38 : {% endblock %}\r\n\r\n\r\n 39 : \r\n\r\nTraceback:\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/core/handlers/base.py\" in get_response\r\n 86. response = callback(request, *callback_args, **callback_kwargs)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/contrib/admin/sites.py\" in root\r\n 172. return self.model_page(request, *url.split('/', 2))\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/views/decorators/cache.py\" in _wrapped_view_func\r\n 44. response = view_func(request, *args, **kwargs)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/contrib/admin/sites.py\" in model_page\r\n 189. return admin_obj(request, rest_of_url)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/contrib/admin/options.py\" in __call__\r\n 267. return self.changelist_view(request)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/contrib/admin/options.py\" in changelist_view\r\n 719. ], context, context_instance=template.RequestContext(request))\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/shortcuts/__init__.py\" in render_to_response\r\n 18. return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/template/loader.py\" in render_to_string\r\n 107. return t.render(context_instance)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/template/__init__.py\" in render\r\n 176. return self.nodelist.render(context)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/template/__init__.py\" in render\r\n 751. bits.append(self.render_node(node, context))\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/template/debug.py\" in render_node\r\n 71. result = node.render(context)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/template/loader_tags.py\" in render\r\n 97. return compiled_parent.render(context)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/template/__init__.py\" in render\r\n 176. return self.nodelist.render(context)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/template/__init__.py\" in render\r\n 751. bits.append(self.render_node(node, context))\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/template/debug.py\" in render_node\r\n 71. result = node.render(context)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/template/loader_tags.py\" in render\r\n 97. return compiled_parent.render(context)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/template/__init__.py\" in render\r\n 176. return self.nodelist.render(context)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/template/__init__.py\" in render\r\n 751. bits.append(self.render_node(node, context))\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/template/debug.py\" in render_node\r\n 71. result = node.render(context)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/template/loader_tags.py\" in render\r\n 24. result = self.nodelist.render(context)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/template/__init__.py\" in render\r\n 751. bits.append(self.render_node(node, context))\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/template/debug.py\" in render_node\r\n 71. result = node.render(context)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/template/loader_tags.py\" in render\r\n 24. result = self.nodelist.render(context)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/template/__init__.py\" in render\r\n 751. bits.append(self.render_node(node, context))\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/template/debug.py\" in render_node\r\n 81. raise wrapped\r\n\r\nException Type: TemplateSyntaxError at /django-admin/visitdb/site/\r\nException Value: Caught an exception while rendering: local variable 'attr' referenced before assignment\r\n\r\nOriginal Traceback (most recent call last):\r\n File \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/template/debug.py\", line 71, in render_node\r\n result = node.render(context)\r\n File \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/template/__init__.py\", line 898, in render\r\n dict = func(*args)\r\n File \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/contrib/admin/templatetags/admin_list.py\", line 235, in result_list\r\n 'result_headers': list(result_headers(cl)),\r\n File \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/contrib/admin/templatetags/admin_list.py\", line 110, in result_headers\r\n admin_order_field = getattr(attr, \"admin_order_field\", None)\r\nUnboundLocalError: local variable 'attr' referenced before assignment\r\n\r\n}}}", "owner": "brosner", "reporter": "tobias", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8317, "created": "2008-08-14 17:20:11", "changetime": "2012-02-05 07:51:37", "last_pulled_from_trac": "2022-03-06 03:41:56.038335", "stage": "Accepted", "status": "closed", "component": "Core (Management commands)", "type": "Bug", "severity": "Normal", "version": "dev", "resolution": "fixed", "summary": "inspectdb does not set primary_key=True or unique=True on foreign keys", "description": "The inspectdb command will not set primary_key=True or unique=True on ForeignKey fields when the column is also a primary key.", "owner": "dgouldin", "reporter": "bthomas", "keywords": "inspectdb", "easy": 0, "has_patch": 1, "needs_better_patch": 0, "needs_tests": 1, "needs_docs": 0, "ui_ux": 0} {"id": 8307, "created": "2008-08-14 07:05:43", "changetime": "2014-02-23 14:12:53", "last_pulled_from_trac": "2022-03-06 03:41:54.279750", "stage": "Accepted", "status": "new", "component": "File uploads/storage", "type": "Cleanup/optimization", "severity": "Normal", "version": "dev", "resolution": null, "summary": "ImageFile use of width_field and height_field is slow with remote storage backends", "description": "im attaching a patch that could make it work", "owner": "jacob", "reporter": "sebastian.serrano@gmail.com", "keywords": "imagefile height width", "easy": 0, "has_patch": 1, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 1, "ui_ux": 0} {"id": 8309, "created": "2008-08-14 13:46:52", "changetime": "2011-09-28 16:12:17", "last_pulled_from_trac": "2022-03-06 03:41:54.629989", "stage": "Accepted", "status": "closed", "component": "Contrib apps", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "GenericForeignKey fails when used in abstract base models", "description": "The following code will reproduce this bug:\r\n\r\n{{{\r\n# aaa/models.py\r\nfrom django.contrib.contenttypes.models import ContentType\r\nfrom django.contrib.contenttypes import generic\r\n\r\nclass MyModel(models.Model):\r\n\tfield = models.IntegerField()\r\n\r\nclass TaggedItemBase(models.Model):\r\n\tclass Meta:\r\n\t\tabstract = True\r\n\r\n\tcontent_type = models.ForeignKey(ContentType)\r\n\tobject_id = models.PositiveIntegerField()\r\n\r\n\tcontent_object = generic.GenericForeignKey()\r\n\r\nclass TaggedItem(TaggedItemBase):\r\n\t\"\"\"A tag on an item.\"\"\"\r\n\ttag = models.SlugField()\r\n\r\n\tclass Meta:\r\n\t\tordering = [\"tag\"]\r\n\r\n\tdef __unicode__(self):\r\n\t\treturn self.tag\r\n\r\n\r\n# From command shell\r\n>>> from aaa.models import MyModel, TaggedItem\r\n>>> m = MyModel(field=1)\r\n>>> m.save()\r\n>>> t = TaggedItem(content_object=m, tag=\"my\")\r\nTraceback (most recent call last):\r\n File \"\", line 1, in ?\r\n File \"/usr/lib/python2.4/site-packages/django/db/models/base.py\", line 240, in __init__\r\n raise TypeError, \"'%s' is an invalid keyword argument for this function\" % kwargs.keys()[0]\r\nTypeError: 'content_object' is an invalid keyword argument for this function\r\n}}}\r\n\r\n\r\nIf we do not use model inheritance, the script works fine.\r\n", "owner": "jacob", "reporter": "Wonlay", "keywords": "GenericForeignKey , model inheritance", "easy": 0, "has_patch": 1, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8326, "created": "2008-08-14 21:09:19", "changetime": "2011-09-28 16:12:17", "last_pulled_from_trac": "2022-03-06 03:41:57.449667", "stage": "Accepted", "status": "closed", "component": "Documentation", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "Basic Django/Jython documentation", "description": null, "owner": "jacob", "reporter": "leosoto", "keywords": "jython", "easy": 0, "has_patch": 1, "needs_better_patch": 1, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8316, "created": "2008-08-14 17:15:40", "changetime": "2011-09-28 16:12:17", "last_pulled_from_trac": "2022-03-06 03:41:55.869642", "stage": "Accepted", "status": "closed", "component": "Database layer (models, ORM)", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "MySQL error with custom primary_key that is not an IntegerField", "description": "Create a model with a custom primary key field that is not an IntegerField and another with a foreign key pointing to it:\r\n\r\n{{{\r\nclass Author(models.Model):\r\n id = models.PositiveIntegerField(primary_key=True)\r\n name = models.CharField(max_length=200)\r\n\r\nclass Article(models.Model):\r\n title = models.CharField(max_length=200)\r\n author = models.ForeignKey(Author)\r\n}}}\r\n\r\nLet's see how the SQL looks:\r\n\r\n{{{\r\nBEGIN;\r\nCREATE TABLE `dbtest_author` (\r\n `id` integer UNSIGNED NOT NULL PRIMARY KEY,\r\n `name` varchar(200) NOT NULL\r\n)\r\n;\r\nCREATE TABLE `dbtest_article` (\r\n `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,\r\n `title` varchar(200) NOT NULL,\r\n `author_id` integer NOT NULL\r\n)\r\n;\r\nALTER TABLE `dbtest_article` ADD CONSTRAINT author_id_refs_id_6bbed69f FOREIGN KEY (`author_id`) REFERENCES `dbtest_author` (`id`);\r\nCREATE INDEX `dbtest_article_author_id` ON `dbtest_article` (`author_id`);\r\nCOMMIT;\r\n}}}\r\n\r\nYou can see that author_id should reference dbtest_author.id, but they have different data types.\r\n\r\nCalling syncdb:\r\n\r\n{{{\r\nCreating table dbtest_author\r\nCreating table dbtest_article\r\nTraceback (most recent call last):\r\n File \"...manage.py\", line 11, in \r\n execute_manager(settings)\r\n File \"C:\\Programme\\django_src\\django\\core\\management\\__init__.py\", line 334, in execute_manager\r\n utility.execute()\r\n File \"C:\\Programme\\django_src\\django\\core\\management\\__init__.py\", line 295, in execute\r\n self.fetch_command(subcommand).run_from_argv(self.argv)\r\n File \"C:\\Programme\\django_src\\django\\core\\management\\base.py\", line 77, in run_from_argv\r\n self.execute(*args, **options.__dict__)\r\n File \"C:\\Programme\\django_src\\django\\core\\management\\base.py\", line 96, in execute\r\n output = self.handle(*args, **options)\r\n File \"C:\\Programme\\django_src\\django\\core\\management\\base.py\", line 178, in handle\r\n return self.handle_noargs(**options)\r\n File \"C:\\Programme\\django_src\\django\\core\\management\\commands\\syncdb.py\", line 80, in handle_noargs\r\n cursor.execute(statement)\r\n File \"C:\\Programme\\django_src\\django\\db\\backends\\util.py\", line 19, in execute\r\n return self.cursor.execute(sql, params)\r\n File \"C:\\Programme\\Python25\\lib\\site-packages\\MySQLdb\\cursors.py\", line 166, in execute\r\n self.errorhandler(self, exc, value)\r\n File \"C:\\Programme\\Python25\\lib\\site-packages\\MySQLdb\\connections.py\", line 35, in defaulterrorhandler\r\n raise errorclass, errorvalue\r\n_mysql_exceptions.OperationalError: (1005, \"Can't create table '.\\\\db\\\\#sql-5b4_8.frm' (errno: 150)\")\r\n}}}\r\n\r\nMySQL is unable to add the constraint, because of the different types (integer, integer unsigned) used.\r\n\r\nThe problem goes back to [1970] where a foreign key pointing to an AutoField, a PositiveIntegerField or a PositiveSmallIntegerField always becomes an IntegerField.", "owner": "julianb", "reporter": "julianb", "keywords": "1.0-blocker", "easy": 0, "has_patch": 1, "needs_better_patch": 1, "needs_tests": 1, "needs_docs": 0, "ui_ux": 0} {"id": 8310, "created": "2008-08-14 13:48:16", "changetime": "2011-09-28 16:12:16", "last_pulled_from_trac": "2022-03-06 03:41:54.775524", "stage": "Unreviewed", "status": "closed", "component": "Uncategorized", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "Fix usage of randint/randrange in [8340]", "description": "Usage of randint and randrange in [8340] is slightly muddled.", "owner": "mtredinnick", "reporter": "mtredinnick", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8315, "created": "2008-08-14 16:51:16", "changetime": "2011-09-28 16:12:17", "last_pulled_from_trac": "2022-03-06 03:41:55.537105", "stage": "Accepted", "status": "closed", "component": "Database layer (models, ORM)", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "MySQL Commands out of sync on attempt to rollback", "description": "I have newest code as of this ticket. This only happens when I run django through a fastCGI on dreamhost. I have built my own python, and mysqlDB so its not dreamhosts stuff. Followed the directions in the django tutorial. Happened after a checkout so that is why I think this might be a bug, and not a support issue. \r\n\r\nHere is the Error dump. \r\n\r\n{{{\r\n /home/varius_2/loudfarm.tastestalkr.com/dispatch.fcgi\" stderr: Traceback (most recent call last):\r\n /home/varius_2/loudfarm.tastestalkr.com/dispatch.fcgi\" stderr: File \"build/bdist.linux-i686/egg/flup/server/fcgi_base.py\", line 558, in run\r\n /home/varius_2/loudfarm.tastestalkr.com/dispatch.fcgi\" stderr: protocolStatus, appStatus = self.server.handler(self)\r\n /home/varius_2/loudfarm.tastestalkr.com/dispatch.fcgi\" stderr: File \"build/bdist.linux-i686/egg/flup/server/fcgi_base.py\", line 1112, in handler\r\n /home/varius_2/loudfarm.tastestalkr.com/dispatch.fcgi\" stderr: result = self.application(environ, start_response)\r\n /home/varius_2/loudfarm.tastestalkr.com/dispatch.fcgi\" stderr: File \"/home/varius_2/opt/lib/python2.5/site-packages/django/core/handlers/wsgi.py\", line 216, in __call__\r\n /home/varius_2/loudfarm.tastestalkr.com/dispatch.fcgi\" stderr: response = self.get_response(request)\r\n /home/varius_2/loudfarm.tastestalkr.com/dispatch.fcgi\" stderr: File \"/home/varius_2/opt/lib/python2.5/site-packages/django/core/handlers/base.py\", line 124, in get_response\r\n /home/varius_2/loudfarm.tastestalkr.com/dispatch.fcgi\" stderr: receivers = signals.got_request_exception.send(sender=self.__class__, request=request)\r\n /home/varius_2/loudfarm.tastestalkr.com/dispatch.fcgi\" stderr: File \"/home/varius_2/opt/lib/python2.5/site-packages/django/dispatch/dispatcher.py\", line 132, in send\r\n /home/varius_2/loudfarm.tastestalkr.com/dispatch.fcgi\" stderr: response = receiver(signal=self, sender=sender, **named)\r\n /home/varius_2/loudfarm.tastestalkr.com/dispatch.fcgi\" stderr: File \"/home/varius_2/opt/lib/python2.5/site-packages/django/db/__init__.py\", line 56, in _rollback_on_exception\r\n /home/varius_2/loudfarm.tastestalkr.com/dispatch.fcgi\" stderr: transaction.rollback_unless_managed()\r\n /home/varius_2/loudfarm.tastestalkr.com/dispatch.fcgi\" stderr: File \"/home/varius_2/opt/lib/python2.5/site-packages/django/db/transaction.py\", line 157, in rollback_unless_managed\r\n /home/varius_2/loudfarm.tastestalkr.com/dispatch.fcgi\" stderr: connection._rollback()\r\n /home/varius_2/loudfarm.tastestalkr.com/dispatch.fcgi\" stderr: File \"/home/varius_2/opt/lib/python2.5/site-packages/django/db/backends/mysql/base.py\", line 227, in _rollback\r\n /home/varius_2/loudfarm.tastestalkr.com/dispatch.fcgi\" stderr: BaseDatabaseWrapper._rollback(self)\r\n /home/varius_2/loudfarm.tastestalkr.com/dispatch.fcgi\" stderr: File \"/home/varius_2/opt/lib/python2.5/site-packages/django/db/backends/__init__.py\", line 32, in _rollback\r\n /home/varius_2/loudfarm.tastestalkr.com/dispatch.fcgi\" stderr: return self.connection.rollback()\r\n /home/varius_2/loudfarm.tastestalkr.com/dispatch.fcgi\" stderr: ProgrammingError: (2014, \"Commands out of sync; you can't run this command now\")\r\n}}}", "owner": "mtredinnick", "reporter": "voidfiles@gmail.com", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8302, "created": "2008-08-14 03:26:19", "changetime": "2008-08-14 03:31:14", "last_pulled_from_trac": "2022-03-06 03:41:53.539158", "stage": "Unreviewed", "status": "closed", "component": "Documentation", "type": null, "severity": null, "version": "dev", "resolution": "duplicate", "summary": "Documentation type-o in \"Order of Middleware_Classes\"", "description": "http://www.djangoproject.com/documentation/cache/#order-of-middleware-classes\r\n\r\nLook at the last word in this copy/paste:\r\n\r\n\"Order of MIDDLEWARE_CLASSES\r\n\r\nIf you use caching middlewaare, . . .\"", "owner": "nobody", "reporter": "defcube", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8303, "created": "2008-08-14 04:54:31", "changetime": "2008-08-14 04:55:19", "last_pulled_from_trac": "2022-03-06 03:41:53.690474", "stage": "Unreviewed", "status": "closed", "component": "Uncategorized", "type": null, "severity": null, "version": "dev", "resolution": "invalid", "summary": "XuXBZJFrj", "description": "\r\n2Mdu0u rshsbbnnfgzq, [url=http://qjvskwacavmt.com/]qjvskwacavmt[/url], [link=http://ryefuwskdkbq.com/]ryefuwskdkbq[/link], http://cnhoeuihcjhf.com/", "owner": "nobody", "reporter": "anonymous", "keywords": "tBNuDvuYvrMV", "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8304, "created": "2008-08-14 04:54:34", "changetime": "2008-08-14 04:55:33", "last_pulled_from_trac": "2022-03-06 03:41:53.851143", "stage": "Unreviewed", "status": "closed", "component": "Uncategorized", "type": null, "severity": null, "version": "dev", "resolution": "invalid", "summary": "XuXBZJFrj", "description": "\r\n2Mdu0u rshsbbnnfgzq, [url=http://qjvskwacavmt.com/]qjvskwacavmt[/url], [link=http://ryefuwskdkbq.com/]ryefuwskdkbq[/link], http://cnhoeuihcjhf.com/", "owner": "nobody", "reporter": "anonymous", "keywords": "tBNuDvuYvrMV", "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8305, "created": "2008-08-14 04:54:42", "changetime": "2008-08-14 04:55:48", "last_pulled_from_trac": "2022-03-06 03:41:53.994640", "stage": "Unreviewed", "status": "closed", "component": "Uncategorized", "type": null, "severity": null, "version": "dev", "resolution": "invalid", "summary": "XuXBZJFrj", "description": "\r\n2Mdu0u rshsbbnnfgzq, [url=http://qjvskwacavmt.com/]qjvskwacavmt[/url], [link=http://ryefuwskdkbq.com/]ryefuwskdkbq[/link], http://cnhoeuihcjhf.com/", "owner": "nobody", "reporter": "anonymous", "keywords": "tBNuDvuYvrMV", "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8306, "created": "2008-08-14 05:43:30", "changetime": "2009-02-25 19:51:44", "last_pulled_from_trac": "2022-03-06 03:41:54.128376", "stage": "Accepted", "status": "closed", "component": "contrib.admin", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "BaseModelAdmin.formfield_for_dbfield() in desperate need of refactor", "description": "See attached patch, which moves all of the model-field-specific overrides out into a dictionary. This has the side effect of increasing customizability :)", "owner": "nobody", "reporter": "ubernostrum", "keywords": null, "easy": 0, "has_patch": 1, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8308, "created": "2008-08-14 07:32:58", "changetime": "2011-09-28 16:12:17", "last_pulled_from_trac": "2022-03-06 03:41:54.460301", "stage": "Accepted", "status": "closed", "component": "Translations", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "New Danish translation", "description": "Hi, here's a fresh Django translation for Danish.", "owner": "nobody", "reporter": "finngruwier", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8311, "created": "2008-08-14 15:04:46", "changetime": "2011-09-28 16:12:17", "last_pulled_from_trac": "2022-03-06 03:41:54.932361", "stage": "Accepted", "status": "closed", "component": "contrib.sessions", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "Changeset 8342 makes test suite hang if memcached is not running", "description": "Up to changeset [8341] my project works okay. After upgrading to [8342], `manage.py test` hangs at 100% CPU, with the following Traceback after Ctrl+C:\r\n\r\n{{{\r\n............^CTraceback (most recent call last):\r\n ... (beginning of doctest stack trace omitted) ...\r\n File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/unittest.py\", line 428, in __call__\r\n return self.run(*args, **kwds)\r\n File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/unittest.py\", line 424, in run\r\n test(result)\r\n File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/unittest.py\", line 281, in __call__\r\n return self.run(*args, **kwds)\r\n File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/unittest.py\", line 260, in run\r\n testMethod()\r\n File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/test/_doctest.py\", line 2174, in runTest\r\n failures, tries = runner.run(\r\n File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/test/_doctest.py\", line 1403, in run\r\n return self.__run(test, compileflags, out)\r\n File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/test/_doctest.py\", line 1267, in __run\r\n compileflags, 1) in test.globs\r\n File \"\", line 1, in ?\r\n File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/contrib/sessions/backends/base.py\", line 233, in flush\r\n self.create()\r\n File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/contrib/sessions/backends/cache.py\", line 20, in create\r\n self.session_key = self._get_new_session_key()\r\n File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/contrib/sessions/backends/base.py\", line 137, in _get_new_session_key\r\n session_key = md5_constructor(\"%s%s%s%s\"\r\n File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/random.py\", line 188, in randrange\r\n return int(istart + self._randbelow(width))\r\n File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/random.py\", line 235, in _randbelow\r\n r = getrandbits(k)\r\nKeyboardInterrupt\r\n}}}\r\n\r\nThe hanging test seems to be in django.contrib.sessions.tests line 56 or so.", "owner": "nobody", "reporter": "jcrocholl", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8313, "created": "2008-08-14 15:19:13", "changetime": "2011-09-28 16:12:16", "last_pulled_from_trac": "2022-03-06 03:41:55.238145", "stage": "Accepted", "status": "closed", "component": "Database layer (models, ORM)", "type": null, "severity": null, "version": "dev", "resolution": "worksforme", "summary": "rev 8340 crashes python on OS X Leopard", "description": "I'm using OS X Leopard (10.5.4) and Postgres 8.3 w/ psycopg2. After updating past revision 8340, psycopg2 causes my Python 2.5 to crash consistently. I tried flushing the database and loading my fixtures from scratch. It crashed no matter what I tried. I noticed there were several fixes related to sessions. I suspect the fact that I was still logged in had something to do with why _psycopg2.so was crashing python.\r\n\r\nI backed the changes out to 8339 and I was able to work again and I was prompted to log in.", "owner": "nobody", "reporter": "jon.brisbin@gmail.com", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8314, "created": "2008-08-14 15:45:41", "changetime": "2011-09-28 16:12:16", "last_pulled_from_trac": "2022-03-06 03:41:55.383519", "stage": "Accepted", "status": "closed", "component": "contrib.sessions", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "rev 8340 breaks sessions while rev 8339 works", "description": "{{{\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] mod_wsgi (pid=22633): Exception occurred processing WSGI script '/var/www/html/XXX/XXX-trunk/XXX.XXX.com.wsgi.py'.\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] Traceback (most recent call last):\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/django-trunk/django/core/handlers/wsgi.py\", line 216, in __call__\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] response = self.get_response(request)\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/django-trunk/django/core/handlers/base.py\", line 67, in get_response\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] response = middleware_method(request)\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/XXX-trunk/XXX/site/middleware.py\", line 81, in process_request\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] request.session['foo'] = \"bar\"\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/django-trunk/django/contrib/sessions/backends/base.py\", line 49, in __setitem__\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] self._session[key] = value\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/django-trunk/django/contrib/sessions/backends/base.py\", line 161, in _get_session\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] self._session_cache = self.load()\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/django-trunk/django/contrib/sessions/backends/db.py\", line 19, in load\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] self.create()\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/django-trunk/django/contrib/sessions/backends/db.py\", line 35, in create\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] self.save(must_create=True)\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/django-trunk/django/contrib/sessions/backends/db.py\", line 52, in save\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] session_data = self.encode(self._session),\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/django-trunk/django/contrib/sessions/backends/base.py\", line 161, in _get_session\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] self._session_cache = self.load()\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/django-trunk/django/contrib/sessions/backends/db.py\", line 19, in load\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] self.create()\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/django-trunk/django/contrib/sessions/backends/db.py\", line 35, in create\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] self.save(must_create=True)\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/django-trunk/django/contrib/sessions/backends/db.py\", line 52, in save\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] session_data = self.encode(self._session),\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/django-trunk/django/contrib/sessions/backends/base.py\", line 161, in _get_session\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] self._session_cache = self.load()\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/django-trunk/django/contrib/sessions/backends/db.py\", line 19, in load\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] self.create()\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/django-trunk/django/contrib/sessions/backends/db.py\", line 35, in create\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] self.save(must_create=True)\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/django-trunk/django/contrib/sessions/backends/db.py\", line 52, in save\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] session_data = self.encode(self._session),\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/django-trunk/django/contrib/sessions/backends/base.py\", line 161, in _get_session\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] self._session_cache = self.load()\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/django-trunk/django/contrib/sessions/backends/db.py\", line 19, in load\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] self.create()\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/django-trunk/django/contrib/sessions/backends/db.py\", line 35, in create\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] self.save(must_create=True)\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/django-trunk/django/contrib/sessions/backends/db.py\", line 52, in save\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] session_data = self.encode(self._session),\r\n[Thu Aug 14 11:37:26 2008] [error] [client XXX] File \"/var/www/html/XXX/django-trunk/django/contrib/sessions/backends/base.py\", line 161, in _get_session\r\n.....\r\nRuntimeError: maximum recursion depth exceeded in cmp\r\n}}}", "owner": "nobody", "reporter": "anonymous", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8318, "created": "2008-08-14 17:39:57", "changetime": "2011-09-28 16:12:17", "last_pulled_from_trac": "2022-03-06 03:41:56.194187", "stage": "Unreviewed", "status": "closed", "component": "Database layer (models, ORM)", "type": null, "severity": null, "version": "dev", "resolution": "duplicate", "summary": "Unexpected behavior with ManyRelatedManager get_or_create()", "description": "I've noticed 2 things happening when using a ManyRelatedManager get_or_create method:\r\n\r\n1. The new related object is created but not added to the current object. Looking at django/db/models/fields/related.py, get_or_create is not overridden() in the ManyRelatedManager definition, but create() is to add the new object.\r\n\r\n2. Using get_or_create() to add a new object that already exists regardless of whether or not it's linked to the current object results in a related object DoesNotExist exception.\r\n\r\n{{{\r\n\r\nfrom django.db import models\r\n\r\nclass Controller(models.Model):\r\n name = models.CharField(max_length=30, unique=True)\r\n\r\n def __unicode__(self):\r\n return self.name\r\n\r\n\r\nclass ControllerGroup(models.Model):\r\n name = models.CharField(max_length=30, unique=True)\r\n controllers = models.ManyToManyField(Controller)\r\n\r\n def __unicode__(self):\r\n return self.name\r\n\r\n\r\n# create a controller\r\n>>> c1 = Controller(name='controller1').save()\r\n\r\n# create a controller group\r\n>>> cg = ControllerGroup(name='my group').save()\r\n\r\n# 'add' using get_or_create()\r\n>>> cg.controllers.get_or_create(name='controller1')\r\nTraceback (most recent call last):\r\n File \"\", line 1, in \r\n File \"/usr/local/django/src/trunk/django/db/models/manager.py\", line 84, in get_or_create\r\n return self.get_query_set().get_or_create(**kwargs)\r\n File \"/usr/local/django/src/trunk/django/db/models/query.py\", line 335, in get_or_create\r\n return self.get(**kwargs), False\r\n File \"/usr/local/django/src/trunk/django/db/models/query.py\", line 300, in get\r\n % self.model._meta.object_name)\r\nDoesNotExist: Controller matching query does not exist.\r\n\r\n# trying 'adding' a controller that doesn't exist\r\n>>> cg.controllers.get_or_create(name='controller2')\r\n(, True)\r\n\r\n# looks like it's been added, let's check\r\n>>> cg.controllers.all()\r\n[]\r\n\r\n}}}\r\n", "owner": "nobody", "reporter": "fredbartle", "keywords": "many related manager get_or_create", "easy": 0, "has_patch": 1, "needs_better_patch": 1, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8319, "created": "2008-08-14 17:53:54", "changetime": "2009-02-25 20:06:10", "last_pulled_from_trac": "2022-03-06 03:41:56.355261", "stage": "Unreviewed", "status": "closed", "component": "contrib.admin", "type": null, "severity": null, "version": "dev", "resolution": "wontfix", "summary": "limit_choices_to does not limit choices on inlined fields with intermediate tables", "description": "Limiting the choices for a tabular inlined member with an intermediate class does not limit the choices. In the example below, the select elements in the admin interface include every story, not just stories which have a start date in the past.\r\n\r\nFor inlined tables where there are thousands of records this can bloat admin page sizes beyond usability.\r\n\r\nIn models.py:\r\n\r\n{{{\r\nclass PageContent(models.Model):\r\n\tstories = models.ManyToManyField('Story', limit_choices_to={'start_date__lte': datetime.now()}, through='PageContentStoryMembership')\r\n\r\nclass PageContentStoryMembership(models.Model):\r\n\tpage_content = models.ForeignKey(PageContent)\r\n\tstory = models.ForeignKey('Story')\r\n\tweight = models.IntegerField(null=False, default=0)\r\n}}}\r\n\r\n\r\nIn admin.py:\r\n{{{\r\nclass PageContentStoryMembershipInline(admin.TabularInline):\r\n\tmodel = PageContentStoryMembership\r\n\r\nclass PageContentAdmin(admin.ModelAdmin):\r\n\tinlines = [PageContentStoryMembershipInline]\r\n}}}\r\n", "owner": "nobody", "reporter": "TrevorFSmith", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8321, "created": "2008-08-14 18:44:04", "changetime": "2009-02-25 19:51:44", "last_pulled_from_trac": "2022-03-06 03:41:56.673433", "stage": "Accepted", "status": "closed", "component": "contrib.auth", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "Use Hashcompat in contrib.auth.user", "description": "\r\nnothing fancy, \r\n\r\njust simply use the new django.utils.hashcompat for the hashing in auth.user", "owner": "nobody", "reporter": "magneto", "keywords": "hashcompat", "easy": 0, "has_patch": 1, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8322, "created": "2008-08-14 19:06:28", "changetime": "2008-08-14 20:34:47", "last_pulled_from_trac": "2022-03-06 03:41:56.839239", "stage": "Unreviewed", "status": "closed", "component": "contrib.admin", "type": null, "severity": null, "version": null, "resolution": "invalid", "summary": "Admin fails to add a slash between MEDIA_URL and upload_to", "description": "With MEDIA_URL=\"/media\" and upload_to=\"somefolder\" the admin, while uploading files properly, shows the link to the newly uploaded file as \u201c/mediasomefolder/filename\u201d without the slash.\r\n\r\nExpected: to add a slash.\r\n\r\nFor consistency, the trailing slash should never be required on paths.", "owner": "nobody", "reporter": "to.roma.from.djbug@qwertty.com", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8323, "created": "2008-08-14 19:31:07", "changetime": "2011-01-18 23:20:32", "last_pulled_from_trac": "2022-03-06 03:41:56.985519", "stage": "Design decision needed", "status": "closed", "component": "contrib.localflavor", "type": null, "severity": null, "version": "dev", "resolution": "duplicate", "summary": "British local flavor package named inconsistently", "description": "I just noticed that according to the [http://www.djangoproject.com/documentation/localflavor/ local flavor documentation], the packages are named using the [http://www.iso.org/iso/country_codes/iso_3166_code_lists/english_country_names_and_code_elements.htm ISO 3166 country codes]. However, at present, the British local flavor is within a package called \"uk\" (United Kingdom) rather than \"gb\" (Great Britain), which would seem to be the correct 2 letter code.\r\n\r\nThis is a pretty minor issue as no other country has been assigned \"uk\" as a country code at this time.\r\n\r\nFor consistency, we may want to rename the package to \"gb\". If so, this should probably be done prior to 1.0 to avoid compatibility issues in the future. If it is decided that the name should be left as is, then I think the documentation should at least be updated to mention this legacy naming anomaly.\r\n\r\nAll the other local flavors appear to be using the correct ISO codes.", "owner": "nobody", "reporter": "frasern", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8325, "created": "2008-08-14 20:45:36", "changetime": "2010-11-07 01:00:06", "last_pulled_from_trac": "2022-03-06 03:41:57.291444", "stage": "Accepted", "status": "closed", "component": "Documentation", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "User Authentication Tutorial has incorrect redirect_field_name value", "description": "http://www.djangoproject.com/documentation/authentication/\r\n\r\nIt would be nice to update the text \"redirect_field_name='redirect_to'\" to \"redirect_field_name='next'\" in describing the login_required decorator. Using 'redirect_to' instead of 'next' causes the login user to be redirected to accounts/profile, which is confusing to a newbie like me.\r\n\r\nThanks!\r\n\r\nRobert", "owner": "nobody", "reporter": "Robert Reeves ", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8327, "created": "2008-08-14 22:15:19", "changetime": "2008-08-14 22:36:51", "last_pulled_from_trac": "2022-03-06 03:41:57.594944", "stage": "Unreviewed", "status": "closed", "component": "contrib.admin", "type": null, "severity": null, "version": "dev", "resolution": "invalid", "summary": "link to change password form on 'change user' page in admin interface is broken", "description": "Go into the admin interface, open a user, and try to change its password.\r\n\r\n{{{\r\nEnvironment:\r\n\r\nRequest Method: GET\r\nRequest URL: http://localhost:8000/bradmin/auth/user/9/password/\r\nDjango Version: 1.0-alpha_2-SVN-8351\r\nPython Version: 2.5.2\r\nInstalled Applications:\r\n['django.contrib.auth',\r\n 'django.contrib.contenttypes',\r\n 'django.contrib.sessions',\r\n 'django.contrib.sites',\r\n 'django.contrib.admin',\r\n 'django.contrib.humanize',\r\n 'visitdb',\r\n 'photologue']\r\nInstalled Middleware:\r\n('visitdb.middleware.RequestAttributeSetup',\r\n 'django.middleware.common.CommonMiddleware',\r\n 'django.contrib.sessions.middleware.SessionMiddleware',\r\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\r\n 'django.middleware.doc.XViewMiddleware',\r\n 'visitdb.middleware.StandardViewKwargsMiddleware')\r\n\r\n\r\nTraceback:\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/core/handlers/base.py\" in get_response\r\n 86. response = callback(request, *callback_args, **callback_kwargs)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/contrib/admin/sites.py\" in root\r\n 172. return self.model_page(request, *url.split('/', 2))\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/views/decorators/cache.py\" in _wrapped_view_func\r\n 44. response = view_func(request, *args, **kwargs)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/contrib/admin/sites.py\" in model_page\r\n 189. return admin_obj(request, rest_of_url)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/contrib/admin/options.py\" in __call__\r\n 275. return self.change_view(request, unquote(url))\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/db/transaction.py\" in _commit_on_success\r\n 238. res = func(*args, **kw)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/contrib/admin/options.py\" in change_view\r\n 616. obj = model._default_manager.get(pk=object_id)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/db/models/manager.py\" in get\r\n 81. return self.get_query_set().get(*args, **kwargs)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/db/models/query.py\" in get\r\n 294. clone = self.filter(*args, **kwargs)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/db/models/query.py\" in filter\r\n 481. return self._filter_or_exclude(False, *args, **kwargs)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/db/models/query.py\" in _filter_or_exclude\r\n 499. clone.query.add_q(Q(*args, **kwargs))\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/db/models/sql/query.py\" in add_q\r\n 1166. can_reuse=used_aliases)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/db/models/sql/query.py\" in add_filter\r\n 1113. self.where.add((alias, col, field, lookup_type, value), connector)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/db/models/sql/where.py\" in add\r\n 48. params = field.get_db_prep_lookup(lookup_type, value)\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/db/models/fields/__init__.py\" in get_db_prep_lookup\r\n 214. return [self.get_db_prep_value(value)]\r\nFile \"/home/tobias/caktus/eclipse-workspace/blueridge_visit_database/django/db/models/fields/__init__.py\" in get_db_prep_value\r\n 439. return int(value)\r\n\r\nException Type: ValueError at /bradmin/auth/user/9/password/\r\nException Value: invalid literal for int() with base 10: '9/password'\r\n}}}", "owner": "nobody", "reporter": "tobias", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 8312, "created": "2008-08-14 15:08:50", "changetime": "2011-09-28 16:12:17", "last_pulled_from_trac": "2022-03-06 03:41:55.091077", "stage": "Accepted", "status": "closed", "component": "Translations", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "Wrong capitalization in Italian translation", "description": "The Italian translation uses capitalized words for names of languages, months and weekdays. The standard is for all these names to be lower case.\r\n\r\nCheck other systems for comparison (e.g. /usr/lib/locale on Unix).", "owner": "tekNico", "reporter": "steadicat", "keywords": null, "easy": 0, "has_patch": 1, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0}