tickets_full

29,846 rows where "last_pulled_from_trac" is on date 2019-06-24 sorted by severity descending

View and edit SQL

These facets timed out: last_pulled_from_trac

id created changetime last_pulled_from_trac stage status component type severity ▲ version resolution summary description owner reporter keywords easy has_patch needs_better_patch needs_tests needs_docs ui_ux
21 2005-07-13 19:33:01 2007-05-30 21:29:52 2019-06-24 00:15:29.854775 Design decision needed closed contrib.admin enhancement trivial   fixed FileUploadField should allow for manual filename entry FileUploadFields currently don't allow users to type in the name of an ''already-existing file'' -- the system forces them to upload a new file each time. There should be a way of designating a path/filename on the server. It'd be great if there was some sort of filesystem-browsing interface, like the one Urchin has for selecting log sources. adrian adrian   0 0 0 0 0 0
31 2005-07-15 13:09:24 2007-10-03 00:37:21 2019-06-24 00:15:36.431798 Ready for checkin closed Documentation defect trivial   fixed Spelling corrections from Template Guide page. There are a few spelling errors on http://www.djangoproject.com/documentation/templates/ : 1. Under "What's a Variable?" the last sentence in the first paragraph has "be replaces with" and should have "be replaced with". 2. Under "What's a Filter?" the second sentence in the first paragraph has "This display the" and should be "This displays the". jacob shalofin@gmail.com nitpick 0 0 0 0 0 0
82 2005-07-19 06:59:18 2007-07-03 23:03:59 2019-06-24 00:16:09.274703 Ready for checkin closed Core (Other) defect trivial   fixed Config snippet for mod_python users doing tutorial 3 Would be nice, if we could still continue the mod_python path... I don't think the httpd.conf for this site is in SVN either, right? adrian Manuzhai <mail@manuzhai.nl>   0 0 0 0 0 0
83 2005-07-19 11:02:41 2005-07-19 14:44:38 2019-06-24 00:16:09.963632 Unreviewed closed Core (Other) defect trivial   fixed Spelling error in Environment not found exception {{{File "/usr/lib/python2.4/site-packages/django/conf/settings.py", line 25, in ? raise EnvironmentError, "Environemnt variable DJANGO_SETTINGS_MODULE is undefined."}}} --- Environenmt. adrian Manuzhai <mail@manuzhai.nl>   0 0 0 0 0 0
88 2005-07-19 16:57:51 2007-07-03 23:03:29 2019-06-24 00:16:13.069853 Accepted closed Core (Other) defect trivial   fixed Configuration should be more forgiving to users who forget the trailing comma. It is really easy for users to forget the trailing comma in configuration settings that should be a tuple, resulting in weird errors. In order to help keep (new) users from getting frustrated, a string should be converted into a tuple for these settings. Here is a patch to implement this: {{{ Index: django/conf/settings.py =================================================================== --- django/conf/settings.py (revision 211) +++ django/conf/settings.py (working copy) @@ -29,9 +29,16 @@ except ImportError, e: raise EnvironmentError, "Could not import DJANGO_SETTINGS_MODULE '%s' (is it on sys.path?): %s" % (me.SETTINGS_MODULE, e) + +# a list of settings that should be converted into tuples if they are strings: +tuple_settings = ["INSTALLED_APPS","TEMPLATE_DIRS"] + for setting in dir(mod): if setting == setting.upper(): - setattr(me, setting, getattr(mod, setting)) + setting_value = getattr(mod, setting) + if setting in tuple_settings and type(setting_value) == str: + setting_value = (setting_value,) #In case the user forgot the comma. + setattr(me, setting, setting_value) # save DJANGO_SETTINGS_MODULE in case anyone in the future cares me.SETTINGS_MODULE = os.environ.get('DJANGO_SETTINGS_MODULE', '') }}} Note that I only put two entries in the tuple_settings list, as they are the only ones I know of. If there are more, they should be added. adrian mmarshall   0 0 0 0 0 0
118 2005-07-20 18:47:08 2006-10-07 17:54:45 2019-06-24 00:16:31.905694 Unreviewed closed Core (Other) defect trivial   fixed flatfiles should be called flatpages I keep forgetting that flatfiles live only in the database and start hunting around the filesystem for them (the ones for the Django site that is). Should they be called flatpages instead? adrian Simon Willison   0 0 0 0 0 0
133 2005-07-21 09:24:39 2007-07-03 23:04:16 2019-06-24 00:16:41.333085 Unreviewed closed Core (Other) defect trivial   fixed Patch to improve DATABASE_ENGINE error message I could not load the postgresql back end because psycopg was nog installed properly. However, that was not clear from the error message. Patch attached. It changes "Your DATABASE_ENGINE setting, %r, is invalid. Is it spelled correctly? Available options are: %s" into "Could not load database backend: %s. Is DATABASE_ENGINE (currently, %r) spelled correctly? Available options are: %s" displaying the error message from import. adrian Joeri van Ruth <jvr+djangotrac@dory.blub.net>   0 0 0 0 0 0
148 2005-07-22 09:09:34 2007-07-16 04:10:10 2019-06-24 00:16:50.644412 Ready for checkin closed *.djangoproject.com defect trivial   fixed Add some padding to the bottom of div#content-main If you look at this page: http://www.djangoproject.com/community/ - it's clear that div#content-main would benefit from a tiny bit of extra padding at the bottom, to ensure the content doesn't come too close to the edge of the div. wilson Simon Willison   0 0 0 0 0 0
169 2005-07-23 11:28:21 2007-07-03 23:04:14 2019-06-24 00:17:04.169478 Design decision needed closed Documentation defect trivial   fixed \\dt instead of \dt in Tutorial 1 In [http://www.djangoproject.com/documentation/tutorial1/ Tutorial 1] we are told: ''If you're interested, run the command-line client for your database and type \\dt (PostgreSQL), SHOW TABLES; (MySQL), or .schema (SQLite) to display the tables.'' However, the right command in PostgreSQL is {{{\dt}}}, not {{{\\dt}}} jacob django@gimbo.org.uk   0 0 0 0 0 0
199 2005-07-25 21:31:55 2006-10-22 16:12:44 2019-06-24 00:17:23.047982 Unreviewed closed Metasystem defect trivial   fixed CharField should raise an exception when maxlength is not specified "maxlength" is a required keyword argument for a CharField, yet no error is raised if the argument is not provided. The error produces its effect much later when the SQL code containing "varchar(None)" fails. It would be better for CharField to raise an exception immediately, so as to simplify debugging. adrian Steadicat   0 0 0 0 0 0
211 2005-07-27 14:51:25 2007-01-17 22:12:17 2019-06-24 00:17:30.756955 Unreviewed closed Metasystem   trivial   fixed [Patch] Remove edit_inline_type / edit_inline verbosity {{{edit_inline_type}}} and {{{edit_inline}}} are redundant; {{{edit_inline_type != None}}} implies {{{edit_inline=True}}} adrian jacob   0 0 0 0 0 0
223 2005-07-29 10:14:47 2007-07-03 23:05:03 2019-06-24 00:17:38.392486 Accepted closed contrib.admin defect trivial   fixed [PATCH] Breadcrumb navigation broken in admin documentation The breadcrumb navigation in the admin documentation templates uses absolute references, rather than relative ones. This means that it won't work if you have your admin server running from anything other than the "root" directory. Example: My admin server is running at http://example.com:8000/admin/ But the code for the breadcrumb looks like this: {{{ <div class="breadcrumbs"> <a href="/">Home</a> &rsaquo; <a href="/doc/">Documentation</a> &rsaquo; <a href="/doc/models/">Models</a> &rsaquo; {{ name }} </div> }}} Which means that the link for documentation (e.g.) will go to http://example.com:8000/doc/, instead of http://example.com:8000/admin/doc. The links need to be changed to use the relative style links of the other page templates. e.g., {{{ <div class="breadcrumbs"> <a href="../../../">Home</a> &rsaquo; <a href="../../">Documentation</a> &rsaquo; <a href="../">Models</a> &rsaquo; {{ name }} </div> }}} The affected files are in django/conf/admin_templates/doc adrian Drew Amato <drewamato@gmail.com>   0 0 0 0 0 0
229 2005-07-29 22:21:58 2006-09-14 02:10:12 2019-06-24 00:17:42.249909 Unreviewed closed contrib.admin defect trivial   duplicate Some images are linked-in externally in Admin interface {{{ Index: django/conf/admin_media/js/SelectFilter2.js =================================================================== --- django/conf/admin_media/js/SelectFilter2.js (revision 347) +++ django/conf/admin_media/js/SelectFilter2.js (working copy) @@ -51,7 +51,7 @@ quickElement('h2', selector_available, 'Available ' + field_name); var filter_p = quickElement('p', selector_available, ''); filter_p.className = 'selector-filter'; - quickElement('img', filter_p, '', 'src', 'http://media.ljworld.com/img/admin/selector-search.gif'); + quickElement('img', filter_p, '', 'src', '/media/img/admin/selector-search.gif'); filter_p.appendChild(document.createTextNode(' ')); var filter_input = quickElement('input', filter_p, '', 'type', 'text'); filter_input.id = field_id + '_input'; @@ -73,7 +73,7 @@ quickElement('h2', selector_chosen, 'Chosen ' + field_name); var selector_filter = quickElement('p', selector_chosen, 'Select your choice(s) and click '); selector_filter.className = 'selector-filter'; - quickElement('img', selector_filter, '', 'src', 'http://media.ljworld.com/img/admin/selector-add.gif', 'alt', 'Add'); + quickElement('img', selector_filter, '', 'src', '/media/img/admin/selector-add.gif', 'alt', 'Add'); var to_box = quickElement('select', selector_chosen, '', 'id', field_id + '_to', 'multiple', 'multiple', 'size', from_box.size, 'name', from_box.getAttribute('name')); to_box.className = 'filtered'; var clear_all = quickElement('a', selector_chosen, 'Clear all', 'href', 'javascript: (function() { SelectBox.move_all("' + field_id + '_to", "' + field_id + '_from");})()'); Index: django/conf/admin_media/js/admin/add_calendars.js =================================================================== --- django/conf/admin_media/js/admin/add_calendars.js (revision 347) +++ django/conf/admin_media/js/admin/add_calendars.js (working copy) @@ -64,7 +64,7 @@ … adrian deric   0 0 0 0 0 0
240 2005-07-31 04:57:17 2007-07-03 23:05:12 2019-06-24 00:17:49.151123 Ready for checkin closed Core (Other) defect trivial   fixed get_callback() improvements The problem was: {{{ [maurycy@localhost ~]$ grep -A 2 INSTALLED_APPS session/settings/main.py INSTALLED_APPS = ( 'session.apps.session', ) [maurycy@localhost ~]$ cat session/settings/urls/main.py from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^session/', include('session.apps.session.urls.session')), ) [maurycy@localhost ~]$ cat session/apps/session/urls/session.py from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^login/?$', 'session.apps.session.views.login'), (r'^logout/?$', 'session.apps.session.views.logout'), ) [maurycy@localhost ~]$ ls -1 session/apps/session/views/*.py session/apps/session/views/__init__.py session/apps/session/views/login.py session/apps/session/views/logout.py [maurycy@localhost ~]$ export DJANGO_SETTINGS_MODULE='session.settings.main' [maurycy@localhost ~]$ django-admin.py runserver Starting server on port 8000 with settings module 'session.settings.main'. Go to http://127.0.0.1:8000/ for Django. Quit the server with CONTROL-C (Unix) or CTRL-BREAK (Windows). [31/Jul/2005 00:32:03] "GET /session/login HTTP/1.1" 302 0 [31/Jul/2005 00:32:03] "GET /session/login/ HTTP/1.1" 500 883 Where http://localhost:8000/session/login returns the exception: There's been an error: Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py", line 57, in get_response callback, param_dict = resolver.resolve(path) File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py", line 81, in resolve match = pattern.search(app_path) File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py", line 59, in search sub_match = pattern.search(new_path) File "/usr/lib/python2.4/site-packages/django/core/urlresolvers.py", line 34, in search self.func = self.get_callback() File "/usr/lib/python2.4/site-packages/django/core/urlr… jacob maurycy   0 0 0 0 0 0
245 2005-08-01 19:54:48 2008-04-27 02:50:16 2019-06-24 00:17:52.326120 Accepted closed Metasystem defect trivial   fixed Remove old ordering syntax For the 1.0 release, we should remove the {{{DeprecationWarning}}} for use of old ordering syntax. This means old ordering syntax will no longer be supported. nobody adrian 1.0 deprecated, qs-rf-fixed 0 1 0 0 0 0
292 2005-08-09 13:42:58 2007-07-03 23:05:32 2019-06-24 00:18:22.604270 Ready for checkin closed Documentation defect trivial   fixed The page title in tutorial part 4 says "part 3" http://www.djangoproject.com/documentation/tutorial4/ The page title in tutorial part 4 says "part 3" jacob elciof@gmail.com   0 0 0 0 0 0
307 2005-08-11 13:44:10 2005-08-13 06:07:52 2019-06-24 00:18:32.575921 Unreviewed closed Metasystem defect trivial   invalid Use unicode strings u"bla-bla" in SQL-queries for compatibility with national languages Use unicode string in SQL-queries for compatibility with national languages (when you pass SQL-query as python unicode - database backend (MySQLdb) authomaticaly converts it from python encoding to mysql-connection encoding) I found it in meta/fields.py (may be in some other places): {{{ def get_db_prep_lookup(self, lookup_type, value): ...skip... elif lookup_type in ('contains', 'icontains'): return ["%%%s%%" % prep_for_like_query(value)] # above string must be: # return [u"%%%s%%" % prep_for_like_query(value)] # using unicode elif lookup_type == 'iexact': }}} without that '''u''' queries like field_contains=unicode_string_with_national_characters will returns nothing adrian mordaha@gmail.com unicode strings in sql queries 0 0 0 0 0 0
311 2005-08-12 15:13:00 2006-10-30 15:53:49 2019-06-24 00:18:35.151992 Unreviewed closed contrib.admin defect trivial   fixed [patch] Update defaulttags.py docstrings to match docs/templates.txt Changeset [441] removed the Janet Reno example from {{{docs/templates.txt}}}. While I'm sorry to see that example go, as it made me laugh, I can understand the rationale. If that goes, then the corresponding change should be made to {{{django/core/defaulttags.py}}}: {{{ Index: django/core/defaulttags.py =================================================================== --- django/core/defaulttags.py (revision 492) +++ django/core/defaulttags.py (working copy) @@ -637,7 +637,7 @@ * Margaret Thatcher * Colendeeza Rice * Unknown: - * Janet Reno + * Pat Smith The following snippet of template code would accomplish this dubious task:: }}} adrian rmunn@pobox.com   0 1 0 0 0 0
379 2005-08-21 01:28:02 2006-10-16 15:08:10 2019-06-24 00:19:18.550160 Unreviewed closed *.djangoproject.com defect trivial   wontfix Add OS, Python version, database version fields to ticket tracker There should be fields for OS, Python Version, Database and Version in the bug tracking system and it should be kept cookily so it is automatically entered on subsequent tickets. jacob ssteiner ticket, environment 0 0 0 0 0 0
390 2005-08-21 23:43:41 2005-09-01 23:01:50 2019-06-24 00:19:25.734991 Unreviewed closed Documentation defect trivial   invalid corrections for model reference documentation In using the ManyToOneField to relate a model to another model multiple times, it turned out to be necessary to use the name parameter (to avoid identical field names in SQL). This is done in the short piece of example code but not documented in the surrounding text. It is undocumented how to use unique_together with ManyToOneFields (whose field names are automagically generated), though it is possible to figure it out using the generated SQL. jacob anonymous   0 0 0 0 0 0
402 2005-08-23 09:11:57 2007-07-03 23:06:00 2019-06-24 00:19:33.597337 Ready for checkin closed contrib.admin defect trivial   wontfix Site Domain Hardcoded The Site domain (for the admin interface) seems to be hardcoded in the admin-templates. This should be changeable with the domainname from the database. adrian anonymous   0 0 0 0 0 0
411 2005-08-23 21:06:00 2006-10-07 21:16:53 2019-06-24 00:19:39.434315 Unreviewed closed Database layer (models, ORM) defect trivial   fixed CursorDebugWrapper does not support pyformat paramstyle. According to the Python Database API Specification v2.0, the paramters provided to the cursor.execute() method can be sequences or mappings. http://www.python.org/peps/pep-0249.html Right now, the CursorDebugWrapper is converting all params to tuples before appending it to the queries list. This is causing my calls that use the pyformat paramstyle to fail during DEBUG mode. Below I removed the 'tuple()' function call which fixes my error. Of course, if there is a reason for this explicit conversion to tuple type that I do not see then a better work around would be needed. {{{ class CursorDebugWrapper: def __init__(self, cursor, db): self.cursor = cursor self.db = db def execute(self, sql, params=[]): start = time() result = self.cursor.execute(sql, params) stop = time() self.db.queries.append({ 'sql': sql % params, 'time': "%.3f" % (stop - start), }) return result }}} adrian imaurer@gmail.com   0 0 0 0 0 0
418 2005-08-25 21:20:52 2005-09-02 21:12:25 2019-06-24 00:19:43.844801 Unreviewed closed contrib.admin defect trivial   invalid No interface to change default site in sites table generated by django-admin.py init There does not seem to be any interface to changing the "domain" and "name" fields on the sites table generated by {{{ django-admin.py init }}} It's fairly disconcerting to see "mysite.com" on the flat pages create/edit form and not have any idea how to modify it, short of changing it by hand in the database. adrian jmadson@techie.com   0 0 0 0 0 0
422 2005-08-26 16:06:45 2005-08-26 16:53:16 2019-06-24 00:19:46.535972 Unreviewed closed Core (Other) enhancement trivial   duplicate define a default charset for web pages On django/utils/httpwrappers.py the DEFAULT_MIME_TYPE is just "text/html". That means the web browsers sometimes show "weird things" when one uses non-ascii characters on the templates (example: customize base_site.html adding some utf-8 characters and open the http://.../admin/ login page). It would be better to define a default charset, changing that to DEFAULT_MIME_TYPE = 'text/html; charset=utf-8' (the same mimetype used on the admin interface). adrian anonymous   0 0 0 0 0 0
424 2005-08-26 16:56:08 2006-10-27 10:34:34 2019-06-24 00:19:47.870365 Unreviewed closed *.djangoproject.com defect trivial   fixed Timeline page doesn't display link to RSS feed two things I noticed that are broken: * anonymous sessions don't work anymore and so my username and address isn't stored * the RSS feed isn't linked from the timeline * the RSS feed is empty jacob hugo <gb@bofh.ms>   0 0 0 0 0 0
456 2005-09-03 03:04:00 2007-07-06 20:15:34 2019-06-24 00:20:08.199964 Ready for checkin closed Documentation defect trivial   invalid [patch] minor typo in overview.txt Extra ')': {{{ Index: overview.txt =================================================================== --- overview.txt (revision 618) +++ overview.txt (working copy) @@ -27,7 +27,7 @@ return self.full_name class Article(meta.Model): - pub_date = meta.DateTimeField) + pub_date = meta.DateTimeField headline = meta.CharField(maxlength=200) article = meta.TextField() reporter = meta.ForeignKey(Reporter) }}} jacob eugene@lazutkin.com   0 1 0 0 0 0
459 2005-09-04 07:34:43 2006-06-12 11:17:16 2019-06-24 00:20:10.106245 Unreviewed closed Tools   trivial   fixed setup.py: admin_templates/registration/*.html is not to installed 'admin_templates/registration/*.html' is ignored in setup.py and not to be installed. {{{ --- setup.py (revision 576) +++ setup.py (working copy) @@ -14,6 +14,7 @@ packages = find_packages(), package_data = { 'django.conf': ['admin_templates/*.html', 'admin_templates/doc/*.html', + 'admin_templates/registration/*.html', 'admin_media/css/*.css', 'admin_media/img/admin/*.gif', 'admin_media/img/admin/*.png', 'admin_media/js/*.js', 'admin_media/js/admin/*js'], }}} adrian igor@jahber.org   0 0 0 0 0 0
462 2005-09-06 06:14:38 2007-07-03 23:06:36 2019-06-24 00:20:11.978597 Unreviewed closed Documentation defect trivial   fixed [patch] small typo in templates_python.txt small typo {{{ Index: templates_python.txt =================================================================== --- templates_python.txt (revision 629) +++ templates_python.txt (working copy) @@ -147,7 +147,7 @@ some things to keep in mind: * If, during the method lookup, a method raises an exception, the exception - will be propgated, unless the exception subclasses + will be propagated, unless the exception subclasses ``django.core.template.SilentVariableFailure``. If the exception subclasses ``SilentVariableFailure``, the variable will render as an empty string. Example:: }}} jacob eugene@lazutkin.com   0 1 0 0 0 0
465 2005-09-06 14:58:10 2007-07-03 23:06:13 2019-06-24 00:20:13.849328 Ready for checkin closed Documentation defect trivial   fixed templates_python.txt: another typo On line 75, it says Rend where it should probably say Render. jacob Manuzhai   0 0 0 0 0 0
481 2005-09-10 00:32:11 2006-10-07 17:59:02 2019-06-24 00:20:24.027070 Unreviewed closed Core (Other) enhancement trivial   fixed [patch] additional http status codes Full list of http status calls is added. I got tired to debug my code and see 30x codes as UNKNOWN STATUS CODE. {{{ Index: wsgi.py =================================================================== --- wsgi.py (revision 632) +++ wsgi.py (working copy) @@ -2,10 +2,53 @@ from django.utils import datastructures, httpwrappers from pprint import pformat +# +# Status code definition. +# For details see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html +# + STATUS_CODE_TEXT = { + 100: 'CONTINUE', + 101: 'SWITCHING PROTOCOLS', 200: 'OK', + 201: 'CREATED', + 202: 'ACCEPTED', + 203: 'NON-AUTHORITATIVE INFORMATION', + 204: 'NO CONTENT', + 205: 'RESET CONTENT', + 206: 'PARTIAL CONTENT', + 300: 'MULTIPLE CHOICES', + 301: 'MOVED PERMANENTLY', + 302: 'FOUND', + 303: 'SEE OTHER', + 304: 'NOT MODIFIED', + 305: 'USE PROXY', + 306: 'RESERVED', + 307: 'TEMPORARY REDIRECT', + 400: 'BAD REQUEST', + 401: 'UNAUTHORIZED', + 402: 'PAYMENT REQUIRED', + 403: 'FORBIDDEN', 404: 'NOT FOUND', + 405: 'METHOD NOT ALLOWED', + 406: 'NOT ACCEPTABLE', + 407: 'PROXY AUTHENTICATION REQUIRED', + 408: 'REQUEST TIMEOUT', + 409: 'CONFLICT', + 410: 'GONE', + 411: 'LENGTH REQUIRED', + 412: 'PRECONDITION FAILED', + 413: 'REQUEST ENTITY TOO LARGE', + 414: 'REQUEST-URI TOO LONG', + 415: 'UNSUPPORTED MEDIA TYPE', + 416: 'REQUESTED RANGE NOT SATISFIABLE', + 417: 'EXPECTATION FAILED', 500: 'INTERNAL SERVER ERROR', + 501: 'NOT IMPLEMENTED', + 502: 'BAD GATEWAY', + 503: 'SERVICE UNAVAILABLE', + 504: 'GATEWAY TIMEOUT', + 505: 'HTTP VERSION NOT SUPPORTED', } class WSGIRequest(httpwrappers.HttpRequest): }}} adrian eugene@lazutkin.com   0 1 0 0 0 0
487 2005-09-11 07:35:50 2005-09-11 15:12:44 2019-06-24 00:20:27.788983 Unreviewed closed Documentation defect trivial   fixed [patch] minor typo in cache.txt The very first example uses DB_CACHE. Isn't it supposed to be CACHE_BACKEND? {{{ Index: cache.txt =================================================================== --- cache.txt (revision 632) +++ cache.txt (working copy) @@ -57,7 +57,7 @@ For example:: - DB_CACHE = "memcached://127.0.0.1:11211/?timeout=60" + CACHE_BACKEND = "memcached://127.0.0.1:11211/?timeout=60" Invalid arguments are silently ignored, as are invalid values of known arguments. }}} jacob eugene@lazutkin.com   0 1 0 0 0 0
489 2005-09-12 02:57:21 2006-11-04 00:32:41 2019-06-24 00:20:29.057472 Unreviewed closed Database layer (models, ORM) defect trivial   fixed [patch] MySQL: TextField => longtext Django maps 'TextField' to MySQL's 'text', which cannot be longer than 64k. I already hit this limit with SQL-based cache. I think that 'longtext' is the better mapping choice. It can be as long as 4G. IMHO, 2 byte size difference is justified in this case. {{{ Index: mysql.py =================================================================== --- mysql.py (revision 635) +++ mysql.py (working copy) @@ -129,7 +178,7 @@ 'PositiveSmallIntegerField': 'smallint UNSIGNED', 'SlugField': 'varchar(50)', 'SmallIntegerField': 'smallint', - 'TextField': 'text', + 'TextField': 'longtext', 'TimeField': 'time', 'URLField': 'varchar(200)', 'USStateField': 'varchar(2)', }}} adrian eugene@lazutkin.com   0 1 0 0 0 0
502 2005-09-14 06:43:53 2006-10-14 13:01:47 2019-06-24 00:20:37.306889 Unreviewed closed contrib.syndication enhancement trivial   fixed [patch] added category to feed items Per RSS 2.0 Specification (http://blogs.law.harvard.edu/tech/rss) I've added categories to post items. !SyndicationFeed.add_item() can accept kw-parameter 'category', which can be a unicode string or a list of unicode strings. Rss201rev2Feed uses it to generate one or multiple <category> tags per item. {{{ Index: feedgenerator.py =================================================================== --- feedgenerator.py (revision 640) +++ feedgenerator.py (working copy) @@ -33,7 +33,7 @@ def add_item(self, title, link, description, author_email=None, author_name=None, pubdate=None, comments=None, unique_id=None, - enclosure=None): + enclosure=None, category=None): """ Adds an item to the feed. All args are expected to be Python Unicode objects except pubdate, which is a datetime.datetime object, and @@ -49,6 +49,7 @@ 'comments': comments, 'unique_id': unique_id, 'enclosure': enclosure, + 'category': category, }) def num_items(self): @@ -142,6 +143,12 @@ handler.addQuickElement(u"enclosure", '', {u"url": item['enclosure'].url, u"length": item['enclosure'].length, u"type": item['enclosure'].mime_type}) + if item['category'] is not None: + if isinstance(item['category'], list): + for cat in item['category']: + handler.addQuickElement(u"category", cat, {}) + else: + handler.addQuickElement(u"category", item['category'], {}) handler.endElement(u"item") # This isolates the decision of what the system default is, so calling code can }}} adrian eugene@lazutkin.com   0 1 0 0 0 0
516 2005-09-15 14:32:42 2005-11-01 00:52:30 2019-06-24 00:20:46.244375 Unreviewed closed Template system defect trivial   wontfix Discrepancy in usage naming of login template file The admin site uses a template directory of <django>/conf/admin_templates, and uses the login.html template file to present a login screen to the user. This name is determined by AdminUserRequired.get_login_template_name(). When TEMPLATE_DIRS for the admin site is pointed to the default templates at <django>/conf/admin_templates, the admin view correctly displays (since this directory contains login.html). However, the <django>/views/auth/login.py view, which is used by the @login_required decorator, references the template 'registration/login'. As a result, if you write a user site that utilizes @login_required, it is not possible to use the same setting for TEMPLATE_DIRS as is used by the admin view. There are two possible (mutually exclusive) fixes: 1) modify AdminUserRequired.get_login_template_name() to return 'registration/login', rather than 'login' 2) modify views/auth/login.py to reference 'login', rather than 'registration/login' I'm not certain which of the two is 'correct', and Django applications work fine without this change (as long as you provide your own login template) but having a default setting for login_required which is incompatible with the default directory layout seems broken. adrian freakboy@iinet.net.au   0 0 0 0 0 0
528 2005-09-19 16:29:25 2011-09-28 16:12:16 2019-06-24 00:20:54.038509 Accepted closed Documentation defect trivial master fixed Add a documentation generator that creates a PDF or HTML files locally It would be nice to have doc generation script for making pdf or static html at local computer after each svn update. Harkins anonymous doc-refactor 0 1 0 0 0 0
538 2005-09-22 13:52:18 2005-09-22 14:29:35 2019-06-24 00:21:00.823047 Unreviewed closed Tools defect trivial   fixed django is not zip_safe When installing on my gentoo system setuptools failed to detect that django wasn't zip safe, so it zipped the egg. This causes django-admin's start(project|app) to fail. Adding zip_safe = False, To the parameters in setup.py takes care of it. adrian grayrest@gmail.com   0 0 0 0 0 0
542 2005-09-23 05:24:09 2006-02-27 18:48:00 2019-06-24 00:21:03.699837 Design decision needed closed contrib.admin enhancement trivial   wontfix [patch] Add an "or cancel" link to add, edit, and delete admin views. When creating, editing, or deleting an object in the admin views, it would be nice if there was a "cancel" link to allow the user to "go back safely". Only 4 total lines of code are affected by this change. wilson Jason Huggins cancel link   1 0 0 0  
563 2005-09-27 03:44:16 2005-09-27 04:25:08 2019-06-24 00:21:17.388682 Unreviewed closed Documentation defect trivial   fixed [patch] minor typo in cache.txt {{{ Index: cache.txt =================================================================== --- cache.txt (revision 701) +++ cache.txt (working copy) @@ -41,7 +41,7 @@ testing. Note that this cache backend is NOT threadsafe! - locmem:/// A more sophisticaed local memory cache; + locmem:/// A more sophisticated local memory cache; this is multi-process- and thread-safe. ============================== =========================================== }}} jacob eugene@lazutkin.com   0 1 0 0 0 0
564 2005-09-27 09:48:28 2005-11-01 00:47:08 2019-06-24 00:21:17.998742 Unreviewed closed Core (Other) defect trivial   invalid django/conf/urls/registration.py intended for general use? Is django/conf/urls/registration.py intended for general use? There are several references to ellington.* in it. adrian Esaj   0 0 0 0 0 0
574 2005-09-29 03:53:21 2006-10-22 16:27:21 2019-06-24 00:21:24.232486 Unreviewed closed contrib.admin defect trivial   fixed [patch] fix small CSS bug in admin interface A small CSS bug in the admin interface "squised" tables togther when using filtering, no more! jacob hp@syntomax.com   0 1 0 0 0 0
590 2005-10-04 06:29:58 2007-12-02 17:59:19 2019-06-24 00:21:34.294191 Design decision needed closed Core (Cache system) enhancement trivial   wontfix Hinting cache from views (vary cache time by object age) Currently cache system uses rather simple way to specify expiration time: it is either some global value for per-site cache, or decorator's parameter for per-view cache. In reality in many cases it depends on content. For example, any news-oriented site (newspaper, blog, message board, ad place, and so on) rarely (if ever) changes archived articles. It is normal to go and change a recent article --- some typos, omissions, and recent development may warrant updates. In this case it makes sense to set hours (days? weeks?) for old articles, and few minutes for recent ones. Possibly some gradations would be required depending on age of underlying document. It is quite possible to find other influences on cache item expiration time: tags, trends of user's activity, and so on. I propose to add a property to '''response''' object, which will indicate the desired expiration time. It can be set by view methods (or some custom middleware). If it is set, it's used by cache middleware. If not, existing mechanism is used. This change doesn't break existing code. Required code changes are rather trivial --- existing cache middleware uses similar mechanism already ('''request''' object is used instead of '''response''' object). That's why I don't submit a patch this time --- it boils down to invention of right name for the property. I trust you guys would be far more consistent than me. nobody eugene@lazutkin.com cache 0 0 0 0 0 0
601 2005-10-10 09:46:14 2007-07-03 23:07:13 2019-06-24 00:21:41.166413 Ready for checkin closed Documentation enhancement trivial   fixed Unique_together documentation update The documentation for [http://www.djangoproject.com/documentation/model_api/ unique_together] suggests that the constraint is only enforced at the admin site level when in fact it is enforced by the database as well (for PostgreSQL at least). A quick update to the docs detailing this would aid new users. jacob Lllama unique_together, unique 0 0 0 0 0 0
635 2005-10-17 13:19:30 2006-10-07 16:33:51 2019-06-24 00:22:02.592483 Unreviewed closed Documentation defect trivial   fixed A small tipo in docs http://www.djangoproject.com/documentation/settings/#prepend-www {{{ PREPEND_WWW Default: False Whether to prepend the "www." subdomain to URLs that don't have it. This is only used if CommonMiddleware is installed (see the middleware docs). See also '''PREPEND_WWW'''. }}} Guess there should be '''APPEND_SLASH'''? jacob anonymous   0 0 0 0 0 0
725 2005-11-04 06:34:09 2008-10-02 23:25:27 2019-06-24 00:22:59.855880 Unreviewed closed *.djangoproject.com defect trivial   fixed missing robots.txt on django websites? $ curl -i http://www.djangoproject.com/robots.txt HTTP/1.1 404 Not Found Date: Fri, 04 Nov 2005 06:32:27 GMT and $ curl -i http://code.djangoproject.com/robots.txt HTTP/1.1 500 Internal Server Error Date: Fri, 04 Nov 2005 06:33:09 GMT VERY minor.. jacob Ian@holsman.net   0 0 0 0 0 0
744 2005-11-07 00:17:56 2007-07-12 18:02:54 2019-06-24 00:23:11.864592 Unreviewed closed Generic views task trivial   fixed `NullBooleanField` should show an icon in the admin listing rather than &#34;None&#34; As it currently stands, `NullBooleanField` displays icons for Yes/True and No/False in the admin listing; a value of NULL, on the other hand, simply displays "None". Since `NullBooleanField` is a 3VL logic field (True, False, Unknown), the Unknown value should be presented in the same format as the other values, i.e., with an icon. Suggestion: a question mark with a blue or yellow background. wilson Tom Tobin <korpios@korpios.com>   0 0 0 0 0 0
761 2005-11-09 18:09:37 2005-11-09 18:29:58 2019-06-24 00:23:22.751962 Unreviewed closed Core (Cache system) defect trivial   fixed [patch] typo in file cache backend typo in cache code jacob eugene@lazutkin.com   0 1 0 0 0 0
773 2005-11-12 06:18:55 2006-10-22 16:04:40 2019-06-24 00:23:30.287107 Unreviewed closed Documentation defect trivial   fixed CACHE_MIDDLEWARE_GZIP is documented but not used {{{CACHE_MIDDLEWARE_GZIP}}} is obsolete, but it's still documented as valid option in http://www.djangoproject.com/documentation/cache/#the-per-site-cache. jacob eugene@lazutkin.com   0 0 0 0 0 0
776 2005-11-12 15:17:01 2007-07-03 23:09:08 2019-06-24 00:23:32.183565 Accepted closed *.djangoproject.com defect trivial new-admin fixed smart+question Under Authentication data in templates there is a link to: http://www.djangoproject.com/documentation/models/templates_python/ I got a 404 when I clicked on it. jacob bmurdock http404 0 0 0 0 0 0
783 2005-11-13 20:58:53 2006-10-31 16:10:55 2019-06-24 00:23:36.642746 Unreviewed closed Core (Other) enhancement trivial   fixed Add ¨id¨ field to anonymous user object I am frequently needing the functionality to allow users to only update their own data and not other peoples data. In my template I tried something like this according to the pythonic principal of least surprise: {{{ {% ifequal user.id data.author_id %} #allow user to do something (e.g. show an edit link) {% endifequal %} }}} If the user is anonymous, this fails and shows a traceback, because the anonymous user has not have an ¨id¨ property. Instead I must write this: {{{ {% if not user.is_anonymous %}{% ifequal user.id data.author_id %} # allow user to do something {% endifequal %}{% endif %} }}} The same problem arises in view code: {{{ if request.user.is_anonymous() or (request.user.id <> data.author_id): # deny access to template and give out error }}} '''Suggestion:''' If the anonymous user had an ¨id¨ property, the additional checks would not be needed. The value for this ¨id¨ could be ¨None¨ as not be be mistaken for a real user. I believe that the User and Anonymoususer objects should behave as similar to each other as possible, and I believe this improves things a bit. adrian EABinGA   0 0 0 0 0 0
798 2005-11-15 03:52:50 2006-10-27 17:11:11 2019-06-24 00:23:46.106605 Unreviewed closed Translations task trivial 0.91 fixed Specifying username, email, and password on as arguments to &#34;django-admin.py createsuperuser&#34; We're frequently rebuilding the entire Django database environment, and it's a pain to specify the username, email, and password to the createsuperuser command. This patch enable you to specify these on the command line so the process can be completely automated/ done in a batch script. Index: django/bin/django-admin.py =================================================================== --- django/bin/django-admin.py (revision 1235) +++ django/bin/django-admin.py (working copy) @@ -81,7 +81,7 @@ translation.activate('en-us') if action in ('createsuperuser', 'init', 'validate'): - ACTION_MAPPING[action]() + ACTION_MAPPING[action](*args[1:]) elif action == 'inspectdb': try: param = args[1] Index: django/core/management.py =================================================================== --- django/core/management.py (revision 1235) +++ django/core/management.py (working copy) @@ -480,39 +480,43 @@ startapp.help_doc = "Creates a Django app directory structure for the given app name in the current directory." startapp.args = "[appname]" -def createsuperuser(): +def createsuperuser(username=None, email=None, password=None): "Creates a superuser account." from django.core import validators from django.models.auth import users import getpass try: while 1: - username = raw_input('Username (only letters, digits and underscores): ') + if not username: username = raw_input('Username (only letters, digits and underscores): ') if not username.isalnum(): - sys.stderr.write("Error: That username is invalid.\n") - continue + sys.stderr.write("Error: That username is invalid\n") + username = None try: users.get_object(username__exact=username) except users.UserDoesNotExist: break else: - sys.stderr.write("Error… adrian bjorn@exoweb.net   0 0 0 0 0 0
866 2005-11-21 06:59:03 2006-10-07 15:57:59 2019-06-24 00:24:29.874171 Unreviewed closed Core (Other) defect trivial   fixed [patch] django.views.static.serve opens files in text mode django.views.static.serve opens files in text mode, which leads to corrupted binary files on Windows. adrian eugene@lazutkin.com   0 1 0 0 0 0
867 2005-11-21 12:05:56 2006-10-07 13:23:03 2019-06-24 00:24:30.520130 Unreviewed closed Database layer (models, ORM) enhancement trivial master fixed [PATCH] Add new (negation) lookup types (e.g., doesnotstartwith, doesnotcontain, etc.) This proposed patch adds new lookup types to the DB API, allowing negation of existing string-based lookups. (I asked Adrian about it in IRC last night, and he seemed open to suggestions.) I've only done this because I needed the functionality myself, but it seems to me to enhance the completeness of the DB lookup types (and I would have thought it would be a fairly common need.) Seven new lookup types are added: ''inotexact'', ''doesnotcontain''/''idoesnotcontain'', ''doesnotstartwith''/''idoesnotstartwith'', and ''doesnotendwith''/''idoesnotendwith''. The only difference between these lookup types and their normal counterparts, is that these turn into a "NOT LIKE" SQL statement, instead of a "LIKE". I'm not hugely happy with the names (particularly ''inotexact''), so if anyone has better ideas then please change them. (I know they're quite long, but the other lookup keywords seem to be chosen for gramattical correctness/readability rather than succinctness anyway.) I added ''inotexact'' to complement ''iexact'' (as a case-insensitive LIKE), but I seem to have some problems (see below.) Also, there's no need for a negation to ''exact'', since we already have ''ne''. Here's how they look in real life: {{{ >>> polls.get_list() [How much do you like Django?, What's up?, To be or not to be., What to do.] >>> polls.get_list(question__doesnotcontain='To') [How much do you like Django?, What's up?, What to do.] >>> polls.get_list(question__idoesnotcontain='To') [How much do you like Django?, What's up?] >>> polls.get_list(question__doesnotstartwith='what') [How much do you like Django?, What's up?, To be or not to be., What to do.] >>> polls.get_list(question__idoesnotstartwith='what') [How much do you like Django?, To be or not to be.] >>> polls.get_list(question__doesnotendwith='?') [To be or not to be., What to do.] }}} I wanted to add ''inotexact'' to be the complement of ''iexact'' (which should be different than ''ne'', based on case-sensitivity) but it looks like ''ne'' … adrian Drew Amato <drewamato@gmail.com>   0 0 0 0 0 0
876 2005-11-22 13:39:51 2006-10-14 14:33:26 2019-06-24 00:24:36.269110 Unreviewed closed Documentation enhancement trivial master fixed Typo in trunk/docs/forms.txt The diff is: $ diff forms.txt forms.txt.new 103c103 < * You'll have to separate create a form (and view) that submits to this --- > * You'll have to separately create a form (and view) that submits to this 308c308 < # Grab the Place object is question for future use. --- > # Grab the Place object in question for future use. BTW: would someone please to tell me what's the preferred option for diff to generate a diff file for Django? Thanks. jacob czhang   0 0 0 0 0 0
921 2005-11-26 14:13:22 2007-12-01 18:53:00 2019-06-24 00:25:04.992520 Design decision needed closed contrib.admin enhancement trivial newforms-admin wontfix Add a "me" shortcut to UserFields In the admin, when I have a UserField, it would be nice to have a shortcut to "me", kind of like how dates have shortcuts to "now", that would automatically fill in the current user, wich means I don't have to go through the (sometimes) long list of users. hakejam ozamosi@blinkenlights.se   0 0 0 0 0 0
926 2005-11-27 00:13:09 2007-07-03 23:10:04 2019-06-24 00:25:08.183351 Design decision needed closed contrib.admin defect trivial   fixed Too narrow collumns for swedish on main admin page The swedish translation of "Add" is "Lägg till". That means it is too wide to fit on the main page of the admin interface, and therefore creates a second row for the "till", wich is ugly and doesn't look very professional. If I would have been able to solve it by translating it with something else, I would, but in this case there is no other candidate. adrian ozamosi@blinkenlights.se   0 0 0 0 0 0
950 2005-11-28 12:03:30 2005-11-28 14:28:22 2019-06-24 00:25:23.204936 Unreviewed closed contrib.admin defect trivial   fixed typo in admin/doc bookmartlets template There is a typo in bookmarklets.html: '''admun_url''' -> '''admin_url''' adrian Nebojša Đorđević - nesh <nesh@studioquattro.co.yu>   0 0 0 0 0 0
1000 2005-12-05 20:57:26 2008-07-07 22:16:45 2019-06-24 00:25:54.810687 Unreviewed closed Core (Other) enhancement trivial   invalid Ticket 1000 This will be saved for something cool. adrian adrian   0 0 0 0 0 0
1011 2005-12-06 22:54:25 2005-12-06 23:18:13 2019-06-24 00:26:01.751496 Unreviewed closed Translations enhancement trivial   fixed Updated spanish (es) translation for djangojs.po (Weekdays) Added Weekdays. See attached file. Thanks. hugo Jorge Gajon   0 0 0 0 0 0
1052 2005-12-13 10:26:46 2006-10-07 22:41:50 2019-06-24 00:26:27.362431 Unreviewed closed Core (Other) enhancement trivial   fixed [patch] Add a 'weeks' fidelity for timesince/timeuntil timesince() / timeuntil() evaluate the difference between two dates and return an approximate answer in days, months, and years. This patch adds a 'weeks' fidelity to the description. For example: {{{ >> timesince(datetime(2005,12,3), datetime(2005,12,13)) OLD: '16 days' NEW: '2 weeks, 2 days' >> timesince(datetime(2005,11,27), datetime(2005,12,13)) OLD: '10 days, 4 hours' NEW: '1 week, 3 days' }}} In addition to applying this patch, translations need to be regenerated and updated for the 'week'/'weeks' keywords. adrian freakboy@iinet.net.au utils timesince 0 1 0 0 0 0
1059 2005-12-14 04:58:13 2006-10-16 15:44:01 2019-06-24 00:26:31.818860 Unreviewed closed contrib.admin defect trivial   fixed [patch] debug output off by one line Debug output is indexed to zero instead of 1. Line numbers are output incorrectly, one less than they should be. adrian oggie rob   0 1 0 0 0 0
1072 2005-12-16 10:49:12 2006-10-22 16:11:54 2019-06-24 00:26:39.969622 Unreviewed closed Documentation enhancement trivial   invalid Does the server code.djangoproject.com have enscript instaled? Sorry to file a bug just for this, but I recently added a wiki page to Django's trac env, [wiki:SimpleBashScriptToSetupDevelopmentEnvironment Simple Bash Script To Setup Development Environment], that would be neater if trac had '''`sh`''' syntax highlight, and trac needs enscript installed on the server running it to correctly display it. Example: A code block usin' '''`sh`''' syntax coloring, wich you won't see because you don't have enscript {{{ #!sh #!/bin/bash VAR="This is a Bash Script" }}} And now a plain monospace block with the same bash script but not usin' the '''`sh(#!sh)`''' [wiki:WikiProcessors WikiProcessor]. So this ticket is actually to see if you could install enscript on your server, Thanks! {{{ #!/bin/bash VAR="This is a Bash Script" }}} jacob Pedro Algarvio <ufs@ufsoft.org>   0 0 0 0 0 0
1096 2005-12-21 04:54:53 2007-04-28 14:15:49 2019-06-24 00:26:55.228229 Unreviewed closed Core (Other) defect trivial master invalid request.META['HTTP_REFERER'] is misspelled Referrer. Took me a while to figure out why it was freaking out when I tried to access that, hah! Unless, of course, I'm missing something and it is actually spelled this way for HTTP... w3 has some documents that say 'Referer', too, but they all have [sic] after them, sooo... Just a small one. :) adrian bretthoerner@gmail.com   0 0 0 0 0 0
1110 2005-12-23 18:16:17 2006-10-07 23:41:19 2019-06-24 00:27:04.135877 Unreviewed closed Template system defect trivial   fixed [patch] Silence wordwrap filter when receiving non-strings This makes the wordwrap filter silent upon receiving a non-string type. If one is iterating though a word-wrapped list ["Some Street", "Some City", 90210], django currently throws an error. adrian scum   0 1 0 0 0 0
1116 2005-12-26 13:39:33 2006-10-07 14:29:29 2019-06-24 00:27:07.994853 Unreviewed closed Documentation defect trivial   fixed [Patch] two minor typo in docs Please see the attached patch files. adrian Cheng <czhang.cmu+web@gmail.com>   0 0 0 0 0 0
1117 2005-12-26 14:33:17 2006-07-07 20:11:22 2019-06-24 00:27:08.608707 Unreviewed closed Internationalization enhancement trivial   fixed add a standard http response for permanent redirect {{{HttpResponseRedirect}}} uses 302 as it's status code. That's FOUND, not MOVED PERMANTLY - the latter is 301. For that there is no prebuilt response, but it should be added (because in many cases it is much more appropriate to tell the client to use the new URL and forget about the old one). This little patch adds a 301 status code: {{{ Index: utils/httpwrappers.py =================================================================== --- utils/httpwrappers.py (revision 1779) +++ utils/httpwrappers.py (working copy) @@ -212,6 +212,12 @@ self['Location'] = redirect_to self.status_code = 302 +class HttpResponsePermanentRedirect(HttpResponse): + def __init__(self, redirect_to): + HttpResponse.__init__(self) + self['Location'] = redirect_to + self.status_code = 301 + class HttpResponseNotModified(HttpResponse): def __init__(self): HttpResponse.__init__(self) }}} Situations where we do fixed redirects - for example those done by the CommonMiddleware - should actually use 301 instead of 302. adrian hugo   0 0 0 0 0 0
1131 2005-12-28 19:33:43 2006-10-22 16:14:05 2019-06-24 00:27:17.416782 Unreviewed closed Core (Other) defect trivial   fixed Add a __repr__ to MultiValueDict At the moment, MultiValueDict inherits its __repr__ from Python's dictionary type. This is confusing, as it leads to the misunderstanding demonstrated in #1130. We should add a custom __repr__ something like this: {{{ def __repr__(self): return "<MultiValueDict: %s>" % dict.__repr__(self) }}} adrian Simon Willison   0 0 0 0 0 0
1155 2006-01-02 07:14:53 2006-03-02 05:48:52 2019-06-24 00:27:32.501439 Unreviewed closed contrib.admin enhancement trivial   wontfix should have horizontal group selection in admin interface Better to use filter_interface=meta.HORIZONTAL for groups in the django.models.auth.User model. The list selection is not very intuitive and this differs from the way non-group permissions are presented. - groups = meta.ManyToManyField(Group, blank=True, + groups = meta.ManyToManyField(Group, blank=True, filter_interface=meta.HORIZONTAL, adrian oggie rob   0 0 0 0 0 0
1156 2006-01-02 18:16:37 2006-10-07 13:22:49 2019-06-24 00:27:33.126720 Unreviewed closed Documentation defect trivial master fixed Typo in URL Dispatcher Docs. Captured parameters {{{ # In foo/urls/blog.py urlpatterns = patterns('foo.views' (r'^$', 'blog.index'), }}} There needs to be a comma after "'foo.views'". jacob Brian Ray <bray@sent.com>   0 0 0 0 0 0
1160 2006-01-03 18:32:29 2006-01-09 02:00:23 2019-06-24 00:27:35.735169 Unreviewed closed Documentation enhancement trivial   invalid Add get_<choicesfield>_display() to the docs Hi, I have a model with a field with ''"choices"'' set, but couldn't find how to display the human readable (second part) of the choice in a template. Until I found at the irc logs a mention that there is a ''"get_<whatever>_display"'' method to do that. I couldn't find a reference to that method anywhere on the docs. I just wanted to mention that maybe it would be good to add it somewhere, probably right in the ''Model Reference'' page, under the ''choices'' description. http://www.djangoproject.com/documentation/model_api/#general-field-options jacob Jorge Gajon   0 0 0 0 0 0
1174 2006-01-06 02:39:34 2007-07-03 23:12:15 2019-06-24 00:27:44.632335 Design decision needed closed Template system enhancement trivial 0.90 invalid admin is flaky - it should work even with errors. Anytime the database gets corrupted, which appears to be surprisingly easy in django, there's no way to get at delete and modification features in the admin interface as it will generally bomb too. Hence, the only way to fix it is to either wipe the dbase and start all over (acceptable in development phase but obviously a no go in a production environment) or to manually boot up sqlite3 or whatever other direct db access tool applies and craft an SQL statement by hand to delete the corrupted data. The admin interface should be there specifically FOR such problems. The fact that it bombs out at the first sign of trouble is obviously not good. Specific cases of db corruption are listed in separate tickets. adrian rz_django@zwitserloot.com   0 0 0 0 0 0
1182 2006-01-07 07:21:10 2006-10-07 21:09:35 2019-06-24 00:27:49.629342 Unreviewed closed Internationalization enhancement trivial   wontfix [patch] make-messages.py duplicates strings already translated in sub-directories Apps with app-specific translations must reside outside the project tree so make-messages.py won't traverse them when constructing the project gettext catalog. The attached patch removes the need for this trick by not traversing ./apps by default. A "-p" option is included for the old behavior. The usage message is also improved. hugo akaihola   0 1 0 0 0 0
1187 2006-01-08 06:14:05 2007-07-03 23:11:35 2019-06-24 00:27:52.951096 Accepted closed Core (Other) defect trivial   fixed [patch] missing PIL gives an error message with missing field name If PIL is missing, the following error message appears when running the internal webserver: {{{ artists.photos: "%s" field: To use ImageFields, you need to install the Python Imaging Library. Get it at http://www.pythonware.com/products/pil/ . }}} The missing string format argument is added in the attached patch. adrian akaihola   0 1 0 0 0 0
1203 2006-01-12 01:59:40 2006-10-16 15:36:50 2019-06-24 00:28:03.127538 Unreviewed closed Core (Cache system) defect trivial   fixed [patch] Typos in cache.py The following patch fixes two typos: 1. In comments. 2. {{{raise}}} is used instead of {{{pass}}}. The latter can blow up a web site, if there is a problem with {{{/tmp}}}. jacob eugene@lazutkin.com   0 1 0 0 0 0
1213 2006-01-13 08:35:07 2007-07-03 23:11:56 2019-06-24 00:28:09.549731 Accepted closed Database layer (models, ORM) defect trivial   fixed Value of NOT_PROVIDED might collide with real data In django.core.meta.fields, NOT_PROVIDED is defined as {{{ # Random entropy string used by "default" param. NOT_PROVIDED = 'oijpwojefiojpanv' }}} Although extremely unlikely, this string could appear as a default value in a model and be interpreted as if no default value was provided. Is there something preventing the following: {{{ class NOT_PROVIDED: pass }}} Or are there some control characters in the range chr(0..31) which don't make sense in the database backend side and could be used here? adrian akaihola   0 0 0 0 0 0
1218 2006-01-13 17:59:41 2006-01-15 01:15:45 2019-06-24 00:28:12.676225 Unreviewed closed Core (Other) enhancement trivial   fixed Improve model validator to complain for non True/False values in 'db_index' The model validator should raise an error for {{{Field}}}s with {{{db_index}}} set to something other than {{{True}}} or {{{False}}}. I came across a colleague's code in which he used {{{"True"}}} and {{{"False"}}} (as strings). adrian adrian   0 0 0 0 0 0
1225 2006-01-14 17:02:32 2006-10-07 12:35:28 2019-06-24 00:28:17.033330 Unreviewed closed Documentation defect trivial   fixed Change year in the Documentation to 2006 Hi. In the [http://www.djangoproject.com/documentation/tutorial1/ Django tutorial] page, after setting up the models & adding initial info, there is an example of the database API: {{{ >>> polls.get_object(pub_date__year=2005) What's up? }}} It doesn't render the expected result, because when adding it, we're using now() and it's 2006 PS: Happy new year ;) jacob Dumitru Postoronca <postoREMOVETHIS@dumitrup.com>   0 0 0 0 0 0
1244 2006-01-19 01:03:59 2006-01-27 15:49:50 2019-06-24 00:28:29.145953 Unreviewed closed contrib.admin enhancement trivial   fixed templateize -> templatize in django.utils.translation Nit-picking I know, but "templatize" is more correct (and returns more results on Google) than "templateize". adrian Esaj   0 0 0 0 0 0
1274 2006-01-26 00:58:31 2006-01-27 15:45:10 2019-06-24 00:28:48.135511 Unreviewed closed contrib.admin defect trivial   fixed password_chage page displays wrong url to self if I go to the password change admin page "/admin/password_change/" the url to "password change" is displayed incorrectly as "/admin/password_change/password_change". Small bug thought I would get it in here anyway. adrian Brian Ray <bray@sent.com>   0 0 0 0 0 0
1311 2006-02-01 23:13:31 2006-10-07 19:33:22 2019-06-24 00:29:11.853092 Unreviewed closed Core (Other) defect trivial 0.91 fixed 'python manage.py sqlclear some_app' - fails to generate SQL when database is down edzio@infocrap:~/myproject$ python manage.py sqlclear sth BEGIN; Traceback (most recent call last): File "manage.py", line 11, in ? execute_manager(settings) File "/usr/lib/python2.3/site-packages/Django-0.91-py2.3.egg/django/core/management.py", line 990, in execute_manager execute_from_command_line(action_mapping) File "/usr/lib/python2.3/site-packages/Django-0.91-py2.3.egg/django/core/management.py", line 965, in execute_from_command_line output = action_mapping[action](mod) File "/usr/lib/python2.3/site-packages/Django-0.91-py2.3.egg/django/core/'''management.py'''", '''line 193''', in '''get_sql_delete''' '''cursor.close()''' AttributeError: ''''NoneType'''' object has no attribute 'close' ---- In management.py we have: {{{ def get_sql_delete(mod): ... try: cursor = db.db.cursor() except: cursor = None ... cursor.close() # cursor = None when db is down }}} Solution: {{{ if cursor is not None: cursor.close() db.db.close() }}} adrian jakamkon@gmail.com manage.py 0 0 0 0 0 0
1325 2006-02-03 13:32:30 2006-04-11 04:55:34 2019-06-24 00:29:20.892934 Unreviewed closed *.djangoproject.com defect trivial   invalid Replacing a ticket attachement in Trac causes a traceback Trying to replace a ticket attachement with a file of the same name causes a traceback: {{{ Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 205, in handler dispatch_request(mpr.path_info, mpr, env) File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 139, in dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 107, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 265, in process_request self._do_save(req, attachment) File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 327, in _do_save perm_map = {'ticket': perm.TICKET_ADMIN, AttributeError: 'module' object has no attribute 'TICKET_ADMIN' }}} jacob andreas@mindpicnic.com   0 0 0 0 0 0
1338 2006-02-10 05:47:06 2006-07-07 19:25:14 2019-06-24 00:29:29.180628 Unreviewed closed Generic views task trivial master fixed Undefined context variables should not resolve to the value of TEMPLATE_STRING_IF_INVALID The new TEMPLATE_STRING_IF_INVALID is a useful setting but it seems to have some problems currently. With the current implementation undefined context variables are actually resolved to the value of TEMPLATE_STRING_IF_INVALID. This means that {% if some_undefined_variable %} can evaluate true. Also {{{FilterExpression}}} is passing the TEMPLATE_STRING_IF_INVALID value through the filters, which is probably not going to fit with user expectations. Perhaps {{{resolve_variable}}} should be consistently raising an exception for all unresolvable variables and {{{Node}}} renderers and {{{FilterExpression}}} should be returning TEMPLATE_STRING_IF_INVALID directly where appropriate. This would be slightly backwards incompatible for people using the guts of the template renderer in their template tags. russellm django@kieranholland.com   0 0 0 0 0 0
1347 2006-02-11 23:28:31 2006-02-27 21:09:29 2019-06-24 00:29:35.032920 Unreviewed closed contrib.admin enhancement trivial   wontfix [patch] allow redirect to any page after deletion in admin interface It would be useful to be if the delete page in the admin interface redirect somewhere else after deletion (e.g. I'm adding the ability to delete an edit_inline object from the related object's admin page. This patch can be used to redirect back to the related object page after deletion.) adrian anonymous   0 1 0 0 0 0
1357 2006-02-15 08:08:37 2006-10-07 15:16:01 2019-06-24 00:29:41.416503 Unreviewed closed Core (Other) defect trivial   fixed The value hasn't been escaped when using manipulator to render SelectField The value hasn't been escaped when using manipulator to render SelectField, so that the select element created by manipulator will bring display problem. Adrian leo@exoweb.cn   0 0 0 0 0 0
1374 2006-02-18 22:19:17 2008-07-13 17:49:50 2019-06-24 00:29:52.355330 Accepted closed Tools enhancement trivial   wontfix Add MultiObjectPaginator, which can paginate across different types of objects I've had this lying around for the past couple of months. Pasting it here because I don't have time to continue working on it. This introduces a {{{MultiObjectPaginator}}} class, which is like {{{ObjectPaginator}}} but paginates across different types of objects. For example, if paginating across books and CDs, it would take care of displaying books first, then CDs (or vice versa, depending on the ordering preference), and it would handle pagination properly. nobody adrian   0 1 0 1 1 0
1380 2006-02-20 18:47:40 2007-02-10 09:29:05 2019-06-24 00:29:56.155171 Design decision needed closed *.djangoproject.com enhancement trivial   wontfix Better title ordering on project website The website should have the actual page name at the begining of the title so you can tell what the tabs are for when you have lots of them open. This will increase usability. jacob anonymous page titles 0 0 0 0 0 0
1381 2006-02-20 22:45:59 2007-03-10 10:37:03 2019-06-24 00:29:56.771709 Design decision needed closed Generic views defect trivial master worksforme 'django.views.generic.date_based.archive_index' doesn't return latest objects first In django/views/generic/data_based.py we have: {{{ def archive_index: ... lookup_kwargs = {'%s__lte' % date_field: datetime.datetime.now()} # * ... date_list = getattr(mod, "get_%s_list" % date_field)('year', **lookup_kwargs)[::-1] }}} Consider situation: {{{ some_model.get_date_list('year') [datetime.datetime(2005, 1, 1, 0, 0), datetime.datetime(2006, 1, 1, 0, 0)] }}} {{{ some_model.get_date_list('year', date__lte=datetime.now()) # situation as in * [datetime.datetime(2005, 1, 1, 0, 0)] # we get the oldest year }}} In other words we get the oldest objects in place of the latest in our view. When * is changed to: {{{ lookup_kwargs = {'%s__gte' % date_field: datetime.datetime.now()} }}} Now, we get the latest date: {{{ some_model.get_date_list('year', date__gte=datetime.now()) [datetime.datetime(2006, 1, 1, 0, 0)] }}} {{{ }}} jacob jakamkon@gmail.com django.views.generic.date_based.archive_index archive_index 0 0 0 0 0 0
1398 2006-02-25 11:29:12 2006-10-07 12:45:24 2019-06-24 00:30:07.631615 Unreviewed closed Core (Management commands) enhancement trivial   wontfix [patch] Add --cascade option to output CASCADE deletes from django-admin.py sqlclear and sqlreset will fail if you've got foreign key issues. This patch allows one to specify --cascade on the command line to output the appropriate DROP TABLE statements. adrian Lllama django-admin manage.py DROP CASCADE option 0 1 0 0 0 0
1411 2006-02-28 00:42:25 2007-07-12 17:57:12 2019-06-24 00:30:15.901285 Unreviewed closed *.djangoproject.com defect trivial   invalid Changeset [2428] merged to both [2426] and [2427] Changeset [2428] states it was a merge to [2427], but [2426] was included as well. (Should be a minor svn:log tweak.) jacob Tom Tobin <korpios@korpios.com>   0 0 0 0 0 0
1439 2006-03-02 01:59:08 2006-03-02 05:01:40 2019-06-24 00:30:33.725688 Unreviewed closed Documentation defect trivial magic-removal fixed Error in transaction docs in the transaction docs shouldn't the following 84 @commit_on_success 85 def viewfunc(request): 86 .... be 84 @transaction.commit_on_success 85 def viewfunc(request): 86 .... jacob anonymous   0 0 0 0 0 0
1487 2006-03-09 21:40:14 2006-03-16 17:07:58 2019-06-24 00:31:04.249807 Unreviewed closed Documentation defect trivial magic-removal invalid docs/model-api for ForeignKeyField lacks option to specify model name The docs for ForeignKeyField in docs/model-api.txt state that you have to pass the model as the first argument. Actually, you can also pass the model name. I came upon this after trying something stupid and getting the following error message: File "/home/mir/src/django/active/django/db/models/fields/related.py", line 410, in __init__ assert isinstance(to, basestring), "ForeignKey(%r) is invalid. First parameter to ForeignKey must be either a model, a model name, or the string %r" % (to, RECURSIVE_RELATIONSHIP_CONSTANT) AssertionError: ForeignKey(<class django_pop.email_admin.models.Ipkunde at 0xb74be41c>) is invalid. First parameter to ForeignKey must be either a model, a model name, or the string 'self' I'm not sure if this actually works, but if not, then the error message is wrong ;-) I need this for cyclic foreign key references ... (no, it's not designed by me, so don't bash me about it ...) jacob mir@noris.de model 0 0 0 0 0 0
1510 2006-03-17 19:42:39 2006-10-22 16:21:26 2019-06-24 00:31:18.838434 Unreviewed closed Documentation defect trivial   fixed [patch] Minor documentation glitch At http://www.djangoproject.com/documentation/generic_views/#using-list-detail-generic-views There's an error in the documentation: {{{ System Message: ERROR/3 (/home/html/djangoproject.com/docs/generic_views.txt, line 297) Malformed table. Text in column margin at line offset 11. }}} It looks like someone has forgotten the newline before ``template_object_name``. jacob pa-ching   0 1 0 0 0 0
1527 2006-03-21 20:23:53 2007-05-20 00:39:58 2019-06-24 00:31:29.586822 Accepted closed Documentation enhancement trivial master duplicate Makefile for HTML documentation I wanted to be able to read the current SVN docs as HTML, so I put together a small Makefile (to go in the docs directory): {{{ .SUFFIXES = .txt .html %.html : %.txt rst2html.py $< $@ objects := $(patsubst %.txt,%.html,$(wildcard *.txt)) all: $(objects) }}} Assumes docutils and rst2html.py on your path, and GNU Make. Running make processes any .txt files to .html as needed. Will add as an attachment too to preserve tabs. jacob Andy Dustman <farcepest@gmail.com>   0 0 0 0 0 0
1568 2006-04-01 06:04:04 2007-02-09 23:30:40 2019-06-24 00:31:55.485598 Ready for checkin closed contrib.admin defect trivial master wontfix [patch] CharFields with small maxlength are still displayed with a size of 30 All of the CharFields are displayed as text input fields with a size of 30, even when the maxlength is much smaller. This can create confusion when the user is unable to type letters in an almost empty field. adrian RahmCoff@Radio1190.org   0 1 0 0 0 0
1572 2006-04-02 12:02:46 2006-10-13 19:37:50 2019-06-24 00:31:58.031303 Unreviewed closed Documentation task trivial   fixed [M-R][Patch]feedgenerator.py should also support only username or email I found that Rss201rev2Feed in feedgenerator.py only support both username and email supplied situation, and I think if there is only username or email it also need support. And I also change the outpu format from : email ( username ) to username ( email ) if both of them supplied I think it's the common format of the author. And I also found that if I'm using Chinese in author_name, they'll be complained that: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 0: ordinal not in range(128) So I remove 'u' string prefix. adrian limodou@gmail.com   0 0 0 0 0 0
1615 2006-04-11 06:13:24 2006-04-11 15:14:29 2019-06-24 00:32:25.148681 Unreviewed closed *.djangoproject.com enhancement trivial   invalid Badges only available in GIF Currently the [http://www.djangoproject.com/community/badges/ Django badges] are only available in the GIF format, but as many would probably agree with me, GIFs are evil. If anyone is interested in replacing them with PNGs, I've converted them all here: http://juffo.org/stuff/django/ wilson intgr@juffo.org   0 0 0 0 0 0
1626 2006-04-12 13:31:40 2007-07-03 21:47:22 2019-06-24 00:32:32.290763 Ready for checkin closed Documentation defect trivial master fixed [patch] A bunch of typos in comments/docs Here's a patch that fixes a bunch of typos in comments and docs. jacob dexter@templeofhate.com   0 1 0 0 0 0
1627 2006-04-12 13:35:12 2006-04-12 14:20:26 2019-06-24 00:32:32.900959 Unreviewed closed Documentation defect trivial magic-removal fixed [patch] A bunch of typos in comments/docs Here's a patch that fixes a bunch of typos in comments and docs. jacob dexter@templeofhate.com   0 1 0 0 0 0
1631 2006-04-13 02:46:46 2006-10-07 18:20:05 2019-06-24 00:32:35.441528 Unreviewed closed Database layer (models, ORM) enhancement trivial magic-removal fixed [patch] django-admin.py dbclient: execute psql/mysql/sqlite3 client using project's DB settings OK, so I'm just scratching my own itch with this patch but I'm hoping others find it useful. If it needs to be kicked to the mailing list for more discussion that's fine. It adds a command, '''django-admin.py dbclient''' (or '''manage.py dbclient''') that launches the appropriate command-line client (psql, mysql, sqlite3) using DATABASE_* settings from the active settings file. Note: I have tested this only on MySQL and SQLite back-ends -- I don't have a running PostgreSQL install, though I am fairly sure the command structure is correct. Nonetheless, testing is of course appreciated. adrian pb@e-scribe.com   0 1 0 0 0 0
1644 2006-04-15 20:10:14 2006-10-07 17:46:20 2019-06-24 00:32:43.590170 Unreviewed closed Documentation defect trivial   fixed Sample FormWrapper templates don't pluralize error message properly The final sample template in the "Forms, fields and manipulators" document references a non-existent "error" variable, rather than the correct "error_dict" attribute of the !FormWrapper object, and so the error message "Please correct the following error" is never pluralized. jacob clelland@gmail.com   0 0 0 0 0 0
1683 2006-04-25 17:42:15 2006-06-19 02:34:37 2019-06-24 00:33:08.081923 Unreviewed closed Metasystem defect trivial magic-removal fixed [patch][magic removal] fixed model objects set-properties to be settable in constructor Currently, django.db.models.base.Model._init_ does not accept object set-properties as its keyword arguments. See example below for more info. Attached is a trivial patch. ---- '''Example.model:''' {{{ from django.db import models class User(models.Model): first_name = models.CharField(maxlength=30, blank=False) last_name = models.CharField(maxlength=30, blank=False) def _get_name(self): return '%s %s' % (self.first_name, self.last_name) def _set_name(self, name): split = name.rfind(' ') self.last_name = name[split+1:] if (split < 0): split = 0 self.first_name = name[:split] name = property(_get_name, _set_name) }}} '''Example.code:''' {{{ u = User(name='Petr Iljic Cajkovskij') }}} '''Result.beforePatch:''' {{{ TypeError: 'name' is an invalid keyword argument for this function }}} adrian iki (admin at mail cz)   0 1 0 0 0 0

Next page

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE "tickets_full" (
        id int primary key,
        created datetime,
        changetime datetime,
        last_pulled_from_trac datetime,
        stage text,
        status text,
        component text,
        type text,
        severity text,
        version text,
        resolution text,
        summary text,
        description text,
        owner text,
        reporter text,
        keywords text,
        easy boolean,
        has_patch boolean,
        needs_better_patch boolean,
        needs_tests boolean,
        needs_docs boolean,
        ui_ux boolean
    );
Powered by Datasette · Query took 3917.544ms