{"id": 7879, "created": "2008-07-22 00:09:18", "changetime": "2009-02-25 19:51:44", "last_pulled_from_trac": "2022-03-06 03:40:48.681647", "stage": "Design decision needed", "status": "closed", "component": "Core (Other)", "type": null, "severity": null, "version": "dev", "resolution": "wontfix", "summary": "reverse/url tag assumes view is a module-level callable", "description": "**django.core.urlresolvers.reverse**, when called with a string argument, requires that string to reference a view inside a module, which means that the following won't work, since **site** is a class, and **admin** is the module.\r\n\r\n{{{\r\nreverse('django.contrib.admin.site.root')\r\n}}}\r\n\r\nThe faulty code is **get_callable** inside urlresolvers.py.", "owner": "nobody", "reporter": "miracle2k", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7880, "created": "2008-07-22 01:34:51", "changetime": "2011-09-28 16:12:16", "last_pulled_from_trac": "2022-03-06 03:40:48.842324", "stage": "Accepted", "status": "closed", "component": "contrib.admin", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "DateField dont work with choices", "description": "The admin interface doesnt show the choices for the 'Fecha' field\r\n\r\nI have a model like this one:\r\n\r\nhttp://dpaste.com/66580/\r\n\r\n\r\nIt works before the newforms-admin branch update, but after i did the update it in the admin interface the choices doesnt work, i try to change to CharField, and it works rigth, but when i back to DateField it wont work anymore.\r\n\r\n{{{\r\n>>svn info\r\nPath: .\r\nURL: http://code.djangoproject.com/svn/django/trunk\r\nRepository Root: http://code.djangoproject.com/svn\r\nRepository UUID: bcc190cf-cafb-0310-a4f2-bffc1f526a37\r\nRevision: 8035\r\nNode Kind: directory\r\nSchedule: normal\r\nLast Changed Author: jacob\r\nLast Changed Rev: 8035\r\nLast Changed Date: 2008-07-21 20:15:43 -0500 (Mon, 21 Jul 2008)\r\n}}}", "owner": "nobody", "reporter": "camilonova", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7881, "created": "2008-07-22 02:22:41", "changetime": "2011-09-28 16:12:17", "last_pulled_from_trac": "2022-03-06 03:40:49.029242", "stage": "Accepted", "status": "closed", "component": "contrib.admin", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "raw_id_fields and limit_choices_to with an __in query results in no output in popup list", "description": "Here is a contrived example:\r\n\r\n{{{\r\n\r\nclass Author(models.Model):\r\n name = models.CharField(max_length=64)\r\n\r\nclass Book(models.Model):\r\n name = models.Charfield(max_length=64)\r\n author = models.ForeignKey(Author, limit_choices_to = {'name__in': ('Oscar','Hugo')})\r\n\r\nclass AuthorAdmin(admin.ModelAdmin):\r\n pass\r\n\r\nclass BookAdmin(admin.ModelAdmin):\r\n raw_id_fields = ('author',)\r\n\r\nadmin.site.register(Author, AuthorAdmin)\r\nadmin.site.register(Book, BookAdmin)\r\n}}}\r\n\r\n{{{\r\n>>> from models import Author\r\n>>> Author.objects.create(name='Oscar')\r\n>>> Author.objects.create(name='Matthew')\r\n>>> Author.objects.create(name='Hugo')\r\n}}}\r\n\r\nNow in the Admin when editing a Book if I click on the magnifying glass to select an Author then the list in the popup is empty. If I change BookAdmin to be:\r\n\r\n{{{\r\nclass BookAdmin(admin.ModelAdmin):\r\n pass\r\n}}}\r\n\r\nthen the select drop down lists the right options.\r\n\r\n\r\n", "owner": "jamesturk", "reporter": "Matthew Flanagan ", "keywords": null, "easy": 0, "has_patch": 1, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7882, "created": "2008-07-22 03:13:16", "changetime": "2008-07-22 03:32:45", "last_pulled_from_trac": "2022-03-06 03:40:49.211713", "stage": "Unreviewed", "status": "closed", "component": "*.djangoproject.com", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "install using python setup.py install as described above", "description": "On http://www.djangoproject.com/download/, the {{{setup.py install}}} instructions actually show up ''below'' the text. Just nitpicking.\r\n", "owner": "nobody", "reporter": "kcarnold", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7883, "created": "2008-07-22 03:22:07", "changetime": "2008-07-22 07:12:29", "last_pulled_from_trac": "2022-03-06 03:40:49.356797", "stage": "Unreviewed", "status": "closed", "component": "Core (Other)", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "Misleading deprecation warning", "description": "I think the second \"Representing uploaded files as dictionaries is deprecated.\" warning in django/db/models/base.py (line 497) should read \"Representing uploaded files as strings is deprecated.\"\r\n", "owner": "nobody", "reporter": "seanl", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7884, "created": "2008-07-22 03:59:10", "changetime": "2010-10-04 03:33:27", "last_pulled_from_trac": "2022-03-06 03:40:49.502141", "stage": "Accepted", "status": "closed", "component": "Testing framework", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "Test framework needs option to run tests and return statuses", "description": "Currently the test framework just uses a unittest.TextTestRunner to run tests and output results to stderr. It would be nice to support an alternate TestRunner that would return results instead.\r\n\r\nThis would be particularly useful for running automated tests and storing test results. Currently for our automated testing, I'm having to regex the stderr for results. Not ideal.\r\n\r\nI'm going to go ahead and write a patch for this", "owner": "devin", "reporter": "devin", "keywords": null, "easy": 0, "has_patch": 1, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7885, "created": "2008-07-22 06:46:45", "changetime": "2011-09-28 16:12:16", "last_pulled_from_trac": "2022-03-06 03:40:49.670091", "stage": "Ready for checkin", "status": "closed", "component": "contrib.admin", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "Prevent duplicates in fields and fieldsets declarations", "description": "The patch I did for #4305 was only fixing the issue for 'fieldsets', so I closed it in favour of this ticket, which also takes care of 'fields'.\r\n\r\nThe attached patch prevents the multiple declarations of fields in the 'fields' and 'fieldsets' attributes. This is to prevent some confusion, having a same field multiple times in a form not making much sense and potentially leading to some unexpected behaviour when saving. Patch also contains tests.", "owner": "wamberg", "reporter": "julien", "keywords": null, "easy": 0, "has_patch": 1, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7886, "created": "2008-07-22 08:31:37", "changetime": "2008-07-27 18:38:56", "last_pulled_from_trac": "2022-03-06 03:40:49.826134", "stage": "Unreviewed", "status": "closed", "component": "Database layer (models, ORM)", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "select_related handling with Oracle is (likely) broken", "description": "I don't have any way to test this right now, but whilst fixing #7813, I realised there's some broken code in `Query.results_iter`. We have these lines\r\n\r\n{{{\r\n#!python\r\nif resolve_columns:\r\n if self.select_fields:\r\n fields = self.select_fields + self.related_select_fields\r\n else:\r\n fields = self.model._meta.fields\r\n}}}\r\n(starting at line 200 in r8053). The problem is that `self.related_select_fields` isn't populated until `pre_sql_setup()` is called by `as_sql()`, which is called as part of the `execute_sql()` call lower down in that method. Thus, when we are querying for specific fields plus something using `select_related()`, we're going to be using an empty list as the second piece of the RHS, when it's really just a list that hasn't been populated yet.\r\n\r\nI haven't really worked out how to fix this yet. Noting it so that I don't forget to do so later. Calling `pre_sql_setup()` earlier looks fragile. Maybe we have to populate the resolve-columns `fields` list inside the loop if it hasn't been populated yet (so on the first iteration), or something like that.\r\n\r\nWe also need to write a test for this. I can't immediately see how that branch is triggered, but that could be because it's late right at the moment.\r\n\r\n(ikelly: adding you to the CC in case you have any good ideas here. Feel free to remove yourself, of course, if you're not interested.)\r\n ", "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": 7887, "created": "2008-07-22 10:41:15", "changetime": "2008-07-22 11:23:35", "last_pulled_from_trac": "2022-03-06 03:40:49.994605", "stage": "Unreviewed", "status": "closed", "component": "Template system", "type": null, "severity": null, "version": "dev", "resolution": "duplicate", "summary": "Allow empty constants in templates", "description": "The {{{Variable}}} class does not accept empty constants (\"\") in templates. The error message is:\r\n{{{\r\nCould not find variable at start of \"\"\r\n}}}\r\n\r\nI traced the error to the {{{__init__}}} method of {{{FilterExpression}}}. The attached diff fixes the error. I think some of the surrounding {{{if }}} statements should also be rewritten as {{{if is not None}}}, but the diff is restricted to fixing this bug.", "owner": "nobody", "reporter": "jcassee", "keywords": null, "easy": 0, "has_patch": 1, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7888, "created": "2008-07-22 12:30:56", "changetime": "2011-09-28 16:12:17", "last_pulled_from_trac": "2022-03-06 03:40:50.164666", "stage": "Accepted", "status": "closed", "component": "Forms", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "BaseModelFormSet cannot resolve instances of inherited models when saving", "description": "When you create a !BaseModelFormSet for a Model which inherits from a user-defined Model, the save operation fails with a !KeyError (key is None). This is because the primary key's attribute name is not what it expects it to be. As far as i can see the following is supposed to take place:\r\n\r\n * creates a !BaseModelFormSet, loads initials from model_to_dict for all forms from a !QuerySet, including the 'id'-field\r\n * !ModelFormSet adds a hidden field via add_fields named pk.attname to each form which will contain the primary key. In normal (most?) cases, this attname is 'id'\r\n * The form uses initial data when cleaning, outputing the pk nicely in the hidden field.\r\n * When saving, use the hidden field to retrieve the object it refers to and save it.\r\n\r\nThe fact that the attributename of a pk for an inherited model is \"_ptr_id\" screws things up. This can be fixed in three ways:\r\n \r\n * Patch model_to_dict to include the actual pk.attrname: pk key/value-pair or...\r\n * Setup the hiddenfield in add_fields of !BaseModelFormSet to include a initial value\r\n * Some clever way I did not think of yet.\r\n\r\nI really love these formsets, they reduce coding time with large factors instead of reducing it by a few minutes :-)", "owner": "brosner", "reporter": "bpeschier", "keywords": "modelformset, inheritance", "easy": 0, "has_patch": 1, "needs_better_patch": 1, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7889, "created": "2008-07-22 12:47:04", "changetime": "2008-07-22 21:54:57", "last_pulled_from_trac": "2022-03-06 03:40:50.360397", "stage": "Accepted", "status": "closed", "component": "*.djangoproject.com", "type": null, "severity": null, "version": null, "resolution": "fixed", "summary": "http://www.djangoproject.com/documentation/newforms/ is a 404", "description": "http://www.djangoproject.com/documentation/newforms/ should ideally 301 redirect to http://www.djangoproject.com/documentation/forms/", "owner": "nobody", "reporter": "muffinresearch", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7890, "created": "2008-07-22 12:59:58", "changetime": "2008-07-22 15:58:49", "last_pulled_from_trac": "2022-03-06 03:40:50.555509", "stage": "Unreviewed", "status": "closed", "component": "*.djangoproject.com", "type": null, "severity": null, "version": "dev", "resolution": "invalid", "summary": "tutorial code - don't know where to insert", "description": "on http://www.djangoproject.com/documentation/tutorial02/\r\nyou write:\r\n----\r\nCustomize the admin change list[[BR]]\r\n#...[[BR]]\r\n[...]But you can change that by giving that method a short_description attribute:\r\n\r\n{{{\r\ndef was_published_today(self):\r\n return self.pub_date.date() == datetime.date.today()\r\nwas_published_today.short_description = 'Published today?'\r\n}}}\r\n----\r\nI'm a Python beginner, and for me it is not clear where to put the last line, because in the models.py this def \"was_published_today\" is a sub method of the Poll class.\r\nBut the above code snippet in your tutorial is not intendated, it is no tab in front of it.\r\n\r\nAt least I don't know where to input that...\r\n(Maybe you'll laugh and say 'learn python' - but the rest of your tutorial is EXCELLENT for absolute beginners as well...)", "owner": "nobody", "reporter": "droetker", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7891, "created": "2008-07-22 13:03:28", "changetime": "2008-07-22 14:29:02", "last_pulled_from_trac": "2022-03-06 03:40:50.729467", "stage": "Unreviewed", "status": "closed", "component": "contrib.auth", "type": null, "severity": null, "version": "dev", "resolution": "worksforme", "summary": "Auth Test Suite not always valid", "description": "Hello, the PasswordReset TestCase is not always valid, specifically the:\r\n\r\n{{{\r\ndef test_email_not_found(self):\r\n \"Error is raised if the provided email address isn't currently registered\"\r\n response = self.client.get('/password_reset/')\r\n self.assertEquals(response.status_code, 200)\r\n response = self.client.post('/password_reset/', {'email': 'not_a_real_email@email.com'})\r\n self.assertContains(response, \"That e-mail address doesn't have an associated user account\")\r\n self.assertEquals(len(mail.outbox), 0)\r\n}}}\r\nIn my case, the url /password_reset/ doesn't exist.\r\n", "owner": null, "reporter": "tolano", "keywords": "testcase test authentication email not found", "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7892, "created": "2008-07-22 14:05:15", "changetime": "2008-07-22 14:40:39", "last_pulled_from_trac": "2022-03-06 03:40:50.922141", "stage": "Unreviewed", "status": "closed", "component": "Uncategorized", "type": null, "severity": null, "version": "dev", "resolution": "invalid", "summary": "erratic Internal Server Error problem with new update", "description": " Hi,\r\n\r\nI have a problem with the latest development release that I suspect is caused by a bug. I already put a request for help on the Users List. I am not an expert user.\r\nI upgraded from dev version 7933.\r\nWith the latest version, I get an erratic error when I try to load pages. \r\nSometimes I get an internal server error message in Apache error.log (Apache & Django errors below).\r\nSometimes I get the standard 500 page.\r\nAnd sometimes there's no problem & the page is loaded.\r\nIt doesn't look like an Apache problem as I'm running another very simple Django project on the same server & that has no problems.\r\nI suspect it's a bug as (a) I don't think there's anything wrong with my template, contrary to what the Django error says and (b) the problem is erratic.\r\nMany thanks to anyone who can look into this.\r\n\r\n######################################################[[BR]]\r\nApache error.log[[BR]]\r\n######################################################[[BR]]\r\n[Mon Jul 21 18:42:47 2008] [error] [client 131.111.39.48] PythonHandler django.core.handlers.modpython: Traceback (most recent call last):\r\n[Mon Jul 21 18:42:47 2008] [error] [client 131.111.39.48] PythonHandler django.core.handlers.modpython: File \"/usr/lib/python2.4/site-packages/mod_python/apache.py\", line 287, in HandlerDispatch\\n log=debug)\r\n[Mon Jul 21 18:42:47 2008] [error] [client 131.111.39.48] PythonHandler django.core.handlers.modpython: File \"/usr/lib/python2.4/site-packages/mod_python/apache.py\", line 457, in import_module\\n module = imp.load_module(mname, f, p, d)\r\n[Mon Jul 21 18:42:47 2008] [error] [client 131.111.39.48] PythonHandler django.core.handlers.modpython: File \"/usr/lib/python2.4/site-packages/django/core/handlers/modpython.py\", line 7, in ?\\n from django.core.urlresolvers import set_script_prefix\r\n[Mon Jul 21 18:42:47 2008] [error] [client 131.111.39.48] PythonHandler django.core.handlers.modpython: ImportError: cannot import name set_script_prefix\r\n\r\n#################################################################[[BR]]\r\nDjango debug=True error page. says on line 45 is the problem[[BR]]\r\n###########################################################[[BR]]\r\nTemplateSyntaxError at /trypanofan/main/\r\nCaught an exception while rendering: Tried change_stage in module django.contrib.admin.views.main. Error was: 'module' object has no attribute 'change_stage' Original Traceback (most recent call last): File \"/usr/lib/python2.4/site-packages/django/template/debug.py\", line 71, in render_node result = node.render(context) File \"/usr/lib/python2.4/site-packages/django/template/defaulttags.py\", line 364, in render return reverse(self.view_name, args=args, kwargs=kwargs) File \"/usr/lib/python2.4/site-packages/django/core/urlresolvers.py\", line 306, in reverse return iri_to_uri(u'%s%s' % (prefix, get_resolver(urlconf).reverse(viewname, File \"/usr/lib/python2.4/site-packages/django/core/urlresolvers.py\", line 289, in reverse if lookup_view in self.reverse_dict: File \"/usr/lib/python2.4/site-packages/django/core/urlresolvers.py\", line 225, in _get_reverse_dict for key, value in pattern.reverse_dict.iteritems(): File \"/usr/lib/python2.4/site-packages/django/core/urlresolvers.py\", line 228, in _get_reverse_dict self._reverse_dict[pattern.callback] = (pattern,) File \"/usr/lib/python2.4/site-packages/django/core/urlresolvers.py\", line 191, in _get_callback raise ViewDoesNotExist, \"Tried %s in module %s. Error was: %s\" % (func_name, mod_name, str(e)) ViewDoesNotExist: Tried change_stage in module django.contrib.admin.views.main. Error was: 'module' object has no attribute 'change_stage' \r\nRequest Method:\r\nGET\r\n Request URL:\r\nhttp://trypanofan.path.cam.ac.uk/trypanofan/main/\r\n Exception Type:\r\nTemplateSyntaxError\r\n Exception Value:\r\nCaught an exception while rendering: Tried change_stage in module django.contrib.admin.views.main. Error was: 'module' object has no attribute 'change_stage' Original Traceback (most recent call last): File \"/usr/lib/python2.4/site-packages/django/template/debug.py\", line 71, in render_node result = node.render(context) File \"/usr/lib/python2.4/site-packages/django/template/defaulttags.py\", line 364, in render return reverse(self.view_name, args=args, kwargs=kwargs) File \"/usr/lib/python2.4/site-packages/django/core/urlresolvers.py\", line 306, in reverse return iri_to_uri(u'%s%s' % (prefix, get_resolver(urlconf).reverse(viewname, File \"/usr/lib/python2.4/site-packages/django/core/urlresolvers.py\", line 289, in reverse if lookup_view in self.reverse_dict: File \"/usr/lib/python2.4/site-packages/django/core/urlresolvers.py\", line 225, in _get_reverse_dict for key, value in pattern.reverse_dict.iteritems(): File \"/usr/lib/python2.4/site-packages/django/core/urlresolvers.py\", line 228, in _get_reverse_dict self._reverse_dict[pattern.callback] = (pattern,) File \"/usr/lib/python2.4/site-packages/django/core/urlresolvers.py\", line 191, in _get_callback raise ViewDoesNotExist, \"Tried %s in module %s. Error was: %s\" % (func_name, mod_name, str(e)) ViewDoesNotExist: Tried change_stage in module django.contrib.admin.views.main. Error was: 'module' object has no attribute 'change_stage' \r\n Exception Location:\r\n/usr/lib/python2.4/site-packages/django/template/debug.py in render_node, line 81\r\n Python Executable:\r\n/usr/bin/python\r\n Python Version:\r\n2.4.3\r\n Python Path:\r\n['/home/administrator/django', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/local/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages/HTMLgen', '/usr/lib/python2.4/site-packages/Numeric', '/usr/lib/python2.4/site-packages/PIL', '/usr/lib/site-python']\r\n Server time:\r\nTue, 22 Jul 2008 13:50:57 +0100\r\nTemplate error\r\nIn template /home/administrator/django/trypanofan/templates/menu.html, error at line 45\r\nCaught an exception while rendering: Tried change_stage in module django.contrib.admin.views.main. Error was: 'module' object has no attribute 'change_stage'\r\n35\r\n tryp_logo\r\n\r\n 36\r\n\r\n\r\n 37\r\n blank\r\n\r\n 38\r\n\r\n\r\n 39\r\n blank\r\n\r\n 40\r\n\r\n\r\n 41\r\n blankTrypanoFAN:blank\r\n\r\n 42\r\n\r\n\r\n 43\r\n \r\n\r\n 44\r\n\r\n\r\n 45\r\n Mainblank\r\n\r\n 46\r\n\r\n\r\n 47\r\n \r\n\r\n 48\r\n\r\n\r\n 49\r\n Advanced Searchblank\r\n\r\n 50\r\n\r\n\r\n 51\r\n \r\n\r\n 52\r\n\r\n\r\n 53\r\n Downloadsblank\r\n\r\n 54\r\n \r\n\r\n 55\r\n \r\n\r\nTraceback Switch to copy-and-paste view\r\n/usr/lib/python2.4/site-packages/django/core/handlers/base.py in get_response \r\n response = callback(request, *callback_args, **callback_kwargs) ...\r\n\u25b6 Local vars \r\n/usr/lib/python2.4/site-packages/django/shortcuts/__init__.py in render_to_response \r\n return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs) ...\r\n\u25b6 Local vars \r\n/usr/lib/python2.4/site-packages/django/template/loader.py in render_to_string \r\n return t.render(context_instance) ...\r\n\u25b6 Local vars \r\n/usr/lib/python2.4/site-packages/django/template/__init__.py in render \r\n return self.nodelist.render(context) ...\r\n\u25b6 Local vars \r\n/usr/lib/python2.4/site-packages/django/template/__init__.py in render \r\n bits.append(self.render_node(node, context)) ...\r\n\u25b6 Local vars \r\n/usr/lib/python2.4/site-packages/django/template/debug.py in render_node \r\n result = node.render(context) ...\r\n\u25b6 Local vars \r\n/usr/lib/python2.4/site-packages/django/template/loader_tags.py in render \r\n return compiled_parent.render(context) ...\r\n\u25b6 Local vars \r\n/usr/lib/python2.4/site-packages/django/template/__init__.py in render \r\n return self.nodelist.render(context) ...\r\n\u25b6 Local vars \r\n/usr/lib/python2.4/site-packages/django/template/__init__.py in render \r\n bits.append(self.render_node(node, context)) ...\r\n\u25b6 Local vars \r\n/usr/lib/python2.4/site-packages/django/template/debug.py in render_node \r\n raise wrapped ...\r\n\u25b6 Local vars \r\nPythonConsoleTemplateSyntaxError at /trypanofan/main/Django Dpaste AgentDjangoEnvironment:\r\n\r\nRequest Method: GET\r\nRequest URL: http://trypanofan.path.cam.ac.uk/trypanofan/main/\r\nDjango Version: 1.0-alpha-SVN-8053\r\nPython Version: 2.4.3\r\nInstalled Applications:\r\n['django.contrib.auth',\r\n 'django.contrib.contenttypes',\r\n 'django.contrib.sessions',\r\n 'django.contrib.admin',\r\n 'trypanofan.experiments']\r\nInstalled Middleware:\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\nTemplate error:\r\nIn template /home/administrator/django/trypanofan/templates/menu.html, error at line 45\r\n Caught an exception while rendering: Tried change_stage in module django.contrib.admin.views.main. Error was: 'module' object has no attribute 'change_stage'\r\n 35 : \ttryp_logo\r\n\r\n\r\n 36 : \r\n\r\n\r\n 37 : \tblank\r\n\r\n\r\n 38 : \r\n\r\n\r\n 39 : blank\r\n\r\n\r\n 40 : \r\n\r\n\r\n 41 : blankTrypanoFAN:blank\r\n\r\n\r\n 42 : \r\n\r\n\r\n 43 : \r\n\r\n\r\n 44 : \r\n\r\n\r\n 45 : \tMainblank\r\n\r\n\r\n 46 : \r\n\r\n\r\n 47 : \t\r\n\r\n\r\n 48 : \r\n\r\n\r\n 49 : \tAdvanced Searchblank\r\n\r\n\r\n 50 : \r\n\r\n\r\n 51 : \t\r\n\r\n\r\n 52 : \r\n\r\n\r\n 53 : \tDownloadsblank\r\n\r\n\r\n 54 : \t\r\n\r\n\r\n 55 : \t\r\n\r\n\r\nTraceback:\r\nFile \"/usr/lib/python2.4/site-packages/django/core/handlers/base.py\" in get_response\r\n 87. response = callback(request, *callback_args, **callback_kwargs)\r\nFile \"/usr/lib/python2.4/site-packages/django/shortcuts/__init__.py\" in render_to_response\r\n 18. return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)\r\nFile \"/usr/lib/python2.4/site-packages/django/template/loader.py\" in render_to_string\r\n 107. return t.render(context_instance)\r\nFile \"/usr/lib/python2.4/site-packages/django/template/__init__.py\" in render\r\n 176. return self.nodelist.render(context)\r\nFile \"/usr/lib/python2.4/site-packages/django/template/__init__.py\" in render\r\n 751. bits.append(self.render_node(node, context))\r\nFile \"/usr/lib/python2.4/site-packages/django/template/debug.py\" in render_node\r\n 71. result = node.render(context)\r\nFile \"/usr/lib/python2.4/site-packages/django/template/loader_tags.py\" in render\r\n 97. return compiled_parent.render(context)\r\nFile \"/usr/lib/python2.4/site-packages/django/template/__init__.py\" in render\r\n 176. return self.nodelist.render(context)\r\nFile \"/usr/lib/python2.4/site-packages/django/template/__init__.py\" in render\r\n 751. bits.append(self.render_node(node, context))\r\nFile \"/usr/lib/python2.4/site-packages/django/template/debug.py\" in render_node\r\n 81. raise wrapped\r\n\r\nException Type: TemplateSyntaxError at /trypanofan/main/\r\nException Value: Caught an exception while rendering: Tried change_stage in module django.contrib.admin.views.main. Error was: 'module' object has no attribute 'change_stage'\r\n\r\nOriginal Traceback (most recent call last):\r\n File \"/usr/lib/python2.4/site-packages/django/template/debug.py\", line 71, in render_node\r\n result = node.render(context)\r\n File \"/usr/lib/python2.4/site-packages/django/template/defaulttags.py\", line 364, in render\r\n return reverse(self.view_name, args=args, kwargs=kwargs)\r\n File \"/usr/lib/python2.4/site-packages/django/core/urlresolvers.py\", line 306, in reverse\r\n return iri_to_uri(u'%s%s' % (prefix, get_resolver(urlconf).reverse(viewname,\r\n File \"/usr/lib/python2.4/site-packages/django/core/urlresolvers.py\", line 289, in reverse\r\n if lookup_view in self.reverse_dict:\r\n File \"/usr/lib/python2.4/site-packages/django/core/urlresolvers.py\", line 225, in _get_reverse_dict\r\n for key, value in pattern.reverse_dict.iteritems():\r\n File \"/usr/lib/python2.4/site-packages/django/core/urlresolvers.py\", line 228, in _get_reverse_dict\r\n self._reverse_dict[pattern.callback] = (pattern,)\r\n File \"/usr/lib/python2.4/site-packages/django/core/urlresolvers.py\", line 191, in _get_callback\r\n raise ViewDoesNotExist, \"Tried %s in module %s. Error was: %s\" % (func_name, mod_name, str(e))\r\nViewDoesNotExist: Tried change_stage in module django.contrib.admin.views.main. Error was: 'module' object has no attribute 'change_stage'\r\n\r\n\r\n\r\nShare this traceback on a public Web siteRequest information\r\nGET\r\nNo GET data\r\nPOST\r\nNo POST data\r\nCOOKIES\r\nVariable\r\nValue\r\n__utma\r\n '196754605.1070604480.1197474644.1197474644.1197474644.1'\r\n META\r\nVariable\r\nValue\r\nAUTH_TYPE\r\n None\r\n CONTENT_LENGTH\r\n 0L\r\n CONTENT_TYPE\r\n None\r\n GATEWAY_INTERFACE\r\n 'CGI/1.1'\r\n HTTP_ACCEPT\r\n 'text/html, image/jpeg, image/png, text/*, image/*, */*'\r\n HTTP_ACCEPT_CHARSET\r\n 'utf-8, utf-8;q=0.5, *;q=0.5'\r\n HTTP_ACCEPT_ENCODING\r\n 'x-gzip, x-deflate, gzip, deflate'\r\n HTTP_ACCEPT_LANGUAGE\r\n 'en'\r\n HTTP_CONNECTION\r\n 'Keep-Alive'\r\n HTTP_COOKIE\r\n '__utma=196754605.1070604480.1197474644.1197474644.1197474644.1'\r\n HTTP_HOST\r\n 'trypanofan.path.cam.ac.uk'\r\n HTTP_USER_AGENT\r\n 'Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.2 (like Gecko) Kubuntu 6.06 Dapper'\r\n PATH_INFO\r\n u'/trypanofan/main/'\r\n PATH_TRANSLATED\r\n None\r\n QUERY_STRING\r\n None\r\n REMOTE_ADDR\r\n '127.0.1.1'\r\n REMOTE_HOST\r\n None\r\n REMOTE_IDENT\r\n None\r\n REMOTE_USER\r\n None\r\n REQUEST_METHOD\r\n 'GET'\r\n SCRIPT_NAME\r\n ''\r\n SERVER_NAME\r\n 'trypanofan.path.cam.ac.uk'\r\n SERVER_PORT\r\n 0\r\n SERVER_PROTOCOL\r\n 'HTTP/1.1'\r\n SERVER_SOFTWARE\r\n 'mod_python'\r\n Settings\r\nUsing settings module trypanofan.settings\r\nSetting\r\nValue\r\nABSOLUTE_URL_OVERRIDES\r\n {}\r\n ADMINS\r\n ()\r\n ADMIN_FOR\r\n ()\r\n ADMIN_MEDIA_PREFIX\r\n '/media/'\r\n ALLOWED_INCLUDE_ROOTS\r\n ()\r\n APPEND_SLASH\r\n True\r\n AUTHENTICATION_BACKENDS\r\n ('django.contrib.auth.backends.ModelBackend',)\r\n BANNED_IPS\r\n ()\r\n CACHE_BACKEND\r\n 'locmem://'\r\n CACHE_MIDDLEWARE_KEY_PREFIX\r\n ''\r\n CACHE_MIDDLEWARE_SECONDS\r\n 600\r\n COMMENTS_ALLOW_PROFANITIES\r\n False\r\n COMMENTS_BANNED_USERS_GROUP\r\n None\r\n COMMENTS_FIRST_FEW\r\n 0\r\n COMMENTS_MODERATORS_GROUP\r\n None\r\n COMMENTS_SKETCHY_USERS_GROUP\r\n None\r\n DATABASE_ENGINE\r\n 'mysql'\r\n DATABASE_HOST\r\n ''\r\n DATABASE_NAME\r\n 'trypanofan'\r\n DATABASE_OPTIONS\r\n {}\r\n DATABASE_PASSWORD\r\n '********************'\r\n DATABASE_PORT\r\n ''\r\n DATABASE_USER\r\n 'administrator'\r\n DATETIME_FORMAT\r\n 'N j, Y, P'\r\n DATE_FORMAT\r\n 'N j, Y'\r\n DEBUG\r\n True\r\n DEBUG_PROPAGATE_EXCEPTIONS\r\n False\r\n DEFAULT_CHARSET\r\n 'utf-8'\r\n DEFAULT_CONTENT_TYPE\r\n 'text/html'\r\n DEFAULT_FROM_EMAIL\r\n 'webmaster@localhost'\r\n DEFAULT_INDEX_TABLESPACE\r\n ''\r\n DEFAULT_TABLESPACE\r\n ''\r\n DISALLOWED_USER_AGENTS\r\n ()\r\n EMAIL_HOST\r\n 'localhost'\r\n EMAIL_HOST_PASSWORD\r\n '********************'\r\n EMAIL_HOST_USER\r\n ''\r\n EMAIL_PORT\r\n 25\r\n EMAIL_SUBJECT_PREFIX\r\n '[Django] '\r\n EMAIL_USE_TLS\r\n False\r\n FILE_CHARSET\r\n 'utf-8'\r\n FILE_UPLOAD_HANDLERS\r\n ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler')\r\n FILE_UPLOAD_MAX_MEMORY_SIZE\r\n 2621440\r\n FILE_UPLOAD_TEMP_DIR\r\n None\r\n FIXTURE_DIRS\r\n ()\r\n FORCE_SCRIPT_NAME\r\n None\r\n IGNORABLE_404_ENDS\r\n ('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')\r\n IGNORABLE_404_STARTS\r\n ('/cgi-bin/', '/_vti_bin', '/_vti_inf')\r\n INSTALLED_APPS\r\n ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.admin', 'trypanofan.experiments']\r\n INTERNAL_IPS\r\n ()\r\n JING_PATH\r\n '/usr/bin/jing'\r\n LANGUAGES\r\n (('ar', 'Arabic'), ('bn', 'Bengali'), ('bg', 'Bulgarian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('es', 'Spanish'), ('et', 'Estonian'), ('es-ar', 'Argentinean Spanish'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('ga', 'Irish'), ('gl', 'Galician'), ('hu', 'Hungarian'), ('he', 'Hebrew'), ('hr', 'Croatian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('ko', 'Korean'), ('km', 'Khmer'), ('kn', 'Kannada'), ('lv', 'Latvian'), ('lt', 'Lithuanian'), ('mk', 'Macedonian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('pl', 'Polish'), ('pt', 'Portugese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sr', 'Serbian'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese'))\r\n LANGUAGES_BIDI\r\n ('he', 'ar', 'fa')\r\n LANGUAGE_CODE\r\n 'en'\r\n LANGUAGE_COOKIE_NAME\r\n 'django_language'\r\n LOCALE_PATHS\r\n ()\r\n LOGIN_REDIRECT_URL\r\n '/accounts/profile/'\r\n LOGIN_URL\r\n '/accounts/login/'\r\n LOGOUT_URL\r\n '/accounts/logout/'\r\n MANAGERS\r\n ()\r\n MEDIA_ROOT\r\n '/var/www/images/'\r\n MEDIA_URL\r\n ''\r\n MIDDLEWARE_CLASSES\r\n ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware')\r\n MONTH_DAY_FORMAT\r\n 'F j'\r\n PREPEND_WWW\r\n False\r\n PROFANITIES_LIST\r\n '********************'\r\n ROOT_URLCONF\r\n 'trypanofan.urls'\r\n SECRET_KEY\r\n '********************'\r\n SEND_BROKEN_LINK_EMAILS\r\n False\r\n SERVER_EMAIL\r\n 'root@localhost'\r\n SESSION_COOKIE_AGE\r\n 1209600\r\n SESSION_COOKIE_DOMAIN\r\n None\r\n SESSION_COOKIE_NAME\r\n 'sessionid'\r\n SESSION_COOKIE_PATH\r\n '/'\r\n SESSION_COOKIE_SECURE\r\n False\r\n SESSION_ENGINE\r\n 'django.contrib.sessions.backends.db'\r\n SESSION_EXPIRE_AT_BROWSER_CLOSE\r\n False\r\n SESSION_FILE_PATH\r\n None\r\n SESSION_SAVE_EVERY_REQUEST\r\n False\r\n SETTINGS_MODULE\r\n 'trypanofan.settings'\r\n SITE_ID\r\n 1\r\n TEMPLATE_CONTEXT_PROCESSORS\r\n ('django.core.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media')\r\n TEMPLATE_DEBUG\r\n True\r\n TEMPLATE_DIRS\r\n ('/home/administrator/django/trypanofan/templates',)\r\n TEMPLATE_LOADERS\r\n ('django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source')\r\n TEMPLATE_STRING_IF_INVALID\r\n ''\r\n TEST_DATABASE_CHARSET\r\n None\r\n TEST_DATABASE_COLLATION\r\n None\r\n TEST_DATABASE_NAME\r\n None\r\n TEST_RUNNER\r\n 'django.test.simple.run_tests'\r\n TIME_FORMAT\r\n 'P'\r\n TIME_ZONE\r\n 'Europe/London'\r\n TRANSACTIONS_MANAGED\r\n False\r\n URL_VALIDATOR_USER_AGENT\r\n u'Django/1.0-alpha-SVN-8053 (http://www.djangoproject.com)'\r\n USE_ETAGS\r\n False\r\n USE_I18N\r\n True\r\n YEAR_MONTH_FORMAT\r\n 'F Y'\r\n You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page. \r\n", "owner": "nobody", "reporter": "ajm.oreilly@googlemail.com", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7893, "created": "2008-07-22 14:33:56", "changetime": "2011-09-28 16:12:17", "last_pulled_from_trac": "2022-03-06 03:40:51.100577", "stage": "Accepted", "status": "closed", "component": "Documentation", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "in Admin doc, fieldsets keys are not distinct from ModelAdmin options", "description": "In the page documentation/admin/ ,\r\n\r\nThe list of fieldset options is indistinct visually from the list of ModelAdmin options, and it is included in it.\r\n\r\nIt can be very misleading : one can understand by example that filter_horizontal is a fieldset possible key.\r\n\r\nSolution : use another level of indentation, use a bullet point list ...", "owner": "brosner", "reporter": "anonymous", "keywords": "admin", "easy": 0, "has_patch": 1, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7894, "created": "2008-07-22 14:45:31", "changetime": "2009-02-25 19:51:44", "last_pulled_from_trac": "2022-03-06 03:40:51.307365", "stage": "Design decision needed", "status": "closed", "component": "Core (Other)", "type": null, "severity": null, "version": "dev", "resolution": "duplicate", "summary": "Support handler optimisations for file downloads", "description": "Sometimes a django app wants to return a file in a response. You can currently do this by returning the data or an iterator for the data in the content of an HttpResponse. However WSGI provides an optional mechanism for higher performance file transmission...\r\n\r\nhttp://www.python.org/dev/peps/pep-0333/#optional-platform-specific-file-handling\r\n\r\n...and I imagine mod_python is capable of a similar speed up.\r\n\r\nIn order to flag to the handler that the response is suitable for this speedup I suggest a new HttpResponseFileWrapper object that wraps a file like object. This response falls back to providing its content via an iterator that reads in block_size (a extra optional parameter) bytes at a time. The speedup mechanism can also use the block_size as a suggestion for reading data from the filelike object.\r\n\r\nSo for example...\r\n\r\n{{{\r\nfrom django.http import HttpResponseFileWrapper\r\n\r\ndef view(request):\r\n return HttpResponseFileWrapper(open('foo.pdf'), block_size=8192)\r\n}}}\r\n", "owner": "nobody", "reporter": "graham.carlyle@maplecroft.com", "keywords": null, "easy": 0, "has_patch": 1, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7895, "created": "2008-07-22 14:58:03", "changetime": "2008-07-22 17:45:44", "last_pulled_from_trac": "2022-03-06 03:40:51.468212", "stage": "Unreviewed", "status": "closed", "component": "Database layer (models, ORM)", "type": null, "severity": null, "version": "dev", "resolution": "wontfix", "summary": "Split Query add_filter and setup_joins into smaller methods for easier subclassing", "description": "Projects such as [http://http://code.google.com/p/django-multilingual/ Django Multilingual] use an highly customized django.db.models.sql.Query subclass to support advanced custom filters; in order to do so we need to copy the entire setup_joins and add_filter methods and apply our custom code inside them.\r\n\r\nThe proposed patch splits add_filter and setup_joins in slightly smaller methods, allowing subclasses to inject custom code into filtering procedures in an easier and more maintainable way.\r\n\r\nTested with Django trunk using the standard test suite.", "owner": "nobody", "reporter": "fabiocorneti", "keywords": "query pluggables", "easy": 0, "has_patch": 1, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7896, "created": "2008-07-22 15:53:43", "changetime": "2008-07-26 00:27:51", "last_pulled_from_trac": "2022-03-06 03:40:51.664814", "stage": "Ready for checkin", "status": "closed", "component": "Documentation", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "Typo in fastcgi docs", "description": "http://www.djangoproject.com/documentation/fastcgi/\r\n\r\n\"In the cases where Django cannot work out the prefix correctly and where you wan the original\"\r\n\r\nwan -> want", "owner": "nobody", "reporter": "Thomas Steinacher ", "keywords": null, "easy": 0, "has_patch": 1, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7897, "created": "2008-07-22 16:00:52", "changetime": "2008-07-23 22:30:25", "last_pulled_from_trac": "2022-03-06 03:40:51.794847", "stage": "Accepted", "status": "closed", "component": "Documentation", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "admin.txt: small spelling mistake near \"InlineModelAdmin objects\"", "description": "In Line 503 of admin.txt:\r\n\r\n{{{\r\nThese are called inlines. You can add them a model being specifing them in a ``ModelAdmin.inlines`` attribute:\r\n}}}\r\n\r\n\"'''being'''\" should be \"'''by'''\".", "owner": "nobody", "reporter": "arthurk", "keywords": null, "easy": 0, "has_patch": 1, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7898, "created": "2008-07-22 16:20:07", "changetime": "2011-09-28 16:12:16", "last_pulled_from_trac": "2022-03-06 03:40:51.944206", "stage": "Accepted", "status": "closed", "component": "contrib.admin", "type": null, "severity": null, "version": "1.0-alpha", "resolution": "fixed", "summary": "CollapsedFieldsets.js is not injected if 'collapse' used in admin.StackedInline admin classes", "description": "Test case:\r\n\r\n\r\n{{{\r\nclass InlineAdmin(admin.StackedInline):\r\n model = Inline\r\n fieldsets = (\r\n (None, {\r\n 'fields': ('field0')\r\n }),\r\n ('Details', {\r\n 'classes': ('collapse',),\r\n 'fields': ('field1', 'field2', 'field3')\r\n })\r\n )\r\n\r\nclass MainAdmin(admin.ModelAdmin):\r\n model = Main\r\n inlines = [InlineAdmin]\r\n}}}\r\n\r\n\r\n\r\nHTML rendered correctly with all fieldsets and the second fieldset has class='collapse' but CollapsedFieldsets.js is not injected into the page so collapse functionality does not work.", "owner": "nobody", "reporter": "dima.kozlov@gmail.com", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7899, "created": "2008-07-22 16:53:56", "changetime": "2008-07-23 05:20:22", "last_pulled_from_trac": "2022-03-06 03:40:52.111354", "stage": "Design decision needed", "status": "closed", "component": "Forms", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "Some small changes to FormSets", "description": "This diff file contains two minor changes to !FormSets. \r\n\r\n1. {{{_max_form_count}}} is renamed to {{{max_form_count}}} to make it constant with {{{extra}}}, etc.\r\n\r\n2. {{{BaseInlineFormset}}} now accepts {{{prefix}}} so that you can have more than one on a age.", "owner": "nobody", "reporter": "Peter of the Norse ", "keywords": null, "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7900, "created": "2008-07-22 17:04:16", "changetime": "2011-09-28 16:12:17", "last_pulled_from_trac": "2022-03-06 03:40:52.242676", "stage": "Design decision needed", "status": "closed", "component": "Core (Other)", "type": null, "severity": null, "version": "dev", "resolution": "duplicate", "summary": "Missing 'tell' in uploaded objects", "description": "To Make the 'File IO' like nature of the 2 Uploaded objects, need to add 'tell' as a method", "owner": "nobody", "reporter": "magneto", "keywords": "files 2070-fix", "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7901, "created": "2008-07-22 17:24:24", "changetime": "2011-09-28 16:12:17", "last_pulled_from_trac": "2022-03-06 03:40:52.427307", "stage": "Accepted", "status": "closed", "component": "Documentation", "type": null, "severity": null, "version": "dev", "resolution": "duplicate", "summary": "Django Documentation - overview (old admin)", "description": "http://www.djangoproject.com/documentation/overview/#a-dynamic-admin-interface-it-s-not-just-scaffolding-it-s-the-whole-house\r\n\r\nDjango overview tells about old admin. ", "owner": "nobody", "reporter": "SokolovR", "keywords": "small bug", "easy": 0, "has_patch": 0, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7902, "created": "2008-07-22 18:29:49", "changetime": "2008-09-03 15:22:59", "last_pulled_from_trac": "2022-03-06 03:40:52.612861", "stage": "Accepted", "status": "closed", "component": "*.djangoproject.com", "type": null, "severity": null, "version": null, "resolution": "fixed", "summary": "/password_change/ is 404", "description": "After a password reset via: http://www.djangoproject.com/accounts/password/reset/ I got an e-mail which contains a link to http://www.djangoproject.com/password_change/ which returns 404.\r\nA working link would be http://www.djangoproject.com/accounts/password/change/", "owner": "nobody", "reporter": "toke", "keywords": null, "easy": 0, "has_patch": 1, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7903, "created": "2008-07-22 21:06:55", "changetime": "2011-09-28 16:12:17", "last_pulled_from_trac": "2022-03-06 03:40:52.764521", "stage": "Ready for checkin", "status": "closed", "component": "contrib.admin", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "Javascript errors with prepopulated_fields in admin", "description": "When I set the prepopulated_fields property in my ModelAdmin, I get the following Javascript error (as reported by firebug):\r\n{{{\r\nNone is not defined\r\nonkeyup() (line 149)\r\nif (!e._changed) { e.value = URL...ntById(\"id_description\").value, None); }\r\nhttp://127.0.0.1/admin/network/path/add/\r\n}}}\r\n\r\nMy model:\r\n{{{\r\nclass Path(models.Model):\r\n\tcircuit_id=\tmodels.CharField(max_length=16, db_index=True, unique=True)\r\n\t\r\n\tdescription=models.CharField(max_length=64)\r\n\tcomments=\tmodels.TextField(blank=True)\r\n\tspeed=\t\tmodels.CharField(max_length=8, blank=True)\r\n\t\r\n\tin_use=\t\tmodels.BooleanField(db_index=True)\r\n}}}\r\n\r\nThe ModelAdmin for that model:\r\n{{{\r\nclass PathAdmin(admin.ModelAdmin):\r\n\tlist_display=('circuit_id','description','comments','speed','in_use')\r\n\tlist_filter=('in_use',)\r\n\tsearch_fields=('circuit_id',)\r\n\tprepopulated_fields= {'comments':('description',)}\r\n}}}\r\n\r\nThe error results in the comments field not being prepopulated.\r\nThis happens both on my Mac 10.5 running Firefox 2.0.0.11 and my Kubuntu Hardy computer running Firefox 3.0", "owner": "jacob", "reporter": "ElliottM", "keywords": "admin javascript prepopulated fields prepopulated_fields", "easy": 0, "has_patch": 1, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7904, "created": "2008-07-22 22:29:39", "changetime": "2008-08-05 16:13:29", "last_pulled_from_trac": "2022-03-06 03:40:52.913358", "stage": "Unreviewed", "status": "closed", "component": "Core (Other)", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "Manager 'get' overloading now fails / Accessing single related (parent) objects should not bypass manager", "description": "The fix to Issue #7666 caused Manage overloading for \"get\" to fail (rather it now fails to use the overloaded method)\r\n\r\n{{{\r\nfrom django.db import models\u00a0\r\n\r\nclass M1Manager(models.Manager):\r\n def get(self, *args, **kwargs):\r\n \"\"\" over load 'get' to allow for more fined tuned actions \"\"\"\r\n #in this trivial example, all gets return none\r\n return None\r\n\r\nclass M1(models.Model):\r\n col1 = models.CharField(max_length = 30)\r\n objects = M1Manager()\r\n\t\r\n __unicode__(self):\r\n return col1\r\n\t \r\nclass M2(models.Model):\r\n m1 = models.ForeignKey(M1)\r\n col2 = models.CharField()\r\n\r\n\r\n\r\nmy_m1 = M1.objects.create(col1=\"m1_obj\")\r\nmy_m2 = M2.objects.create(m1 = my_m1, col2=\"my_m2\")\r\n\r\nfind_m2 = M2.objects.get(col2 = \"my_m2\")\r\n#prints \"m1_obj\" and should print None\r\nprint find_m2.m1\r\n\r\n}}}\r\n\r\n\r\n", "owner": "nobody", "reporter": "magneto", "keywords": null, "easy": 0, "has_patch": 1, "needs_better_patch": 0, "needs_tests": 0, "needs_docs": 0, "ui_ux": 0} {"id": 7905, "created": "2008-07-22 23:48:36", "changetime": "2011-09-28 16:12:16", "last_pulled_from_trac": "2022-03-06 03:40:53.088708", "stage": "Ready for checkin", "status": "closed", "component": "Documentation", "type": null, "severity": null, "version": "dev", "resolution": "fixed", "summary": "document raw_id_fields option in InlineModelAdmin", "description": "A quick patch to document this option.\r\n\r\n{{{\r\nIndex: docs/admin.txt\r\n===================================================================\r\n--- docs/admin.txt (revision 8051)\r\n+++ docs/admin.txt (working copy)\r\n@@ -569,6 +569,17 @@\r\n\r\n .. _max_num in formsets: ../modelforms/#limiting-the-number-of-objects-editable\r\n\r\n+``raw_id_fields``\r\n+~~~~~~~~~~~~~~~~~\r\n+\r\n+By default, Django's admin uses a select-box interface (