home / django_tickets

tickets

28 rows where "created" is on date 2008-08-11 sorted by severity

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: stage, component, version, resolution, has_patch, needs_tests

changetime 18 ✖

  • 2011-09-28 16:12:17 11
  • 2008-08-11 01:19:50 1
  • 2008-08-11 13:52:59 1
  • 2008-08-11 14:01:36 1
  • 2008-08-11 14:51:36 1
  • 2008-08-11 15:13:00 1
  • 2008-08-11 15:56:20 1
  • 2008-08-11 16:00:47 1
  • 2008-08-11 19:05:31 1
  • 2008-08-11 20:05:47 1
  • 2008-08-11 23:32:29 1
  • 2008-08-12 18:28:55 1
  • 2008-08-23 01:10:47 1
  • 2009-09-28 21:33:27 1
  • 2011-07-27 02:20:41 1
  • 2011-09-28 16:12:16 1
  • 2012-04-05 11:17:12 1
  • 2012-11-08 01:51:32 1

created (date) 1 ✖

  • 2008-08-11 · 28 ✖
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
8218 2008-08-11 01:06:13 2008-08-11 01:19:50 2022-03-06 03:41:40.693241 Unreviewed closed Database layer (models, ORM)     dev worksforme extra() with params and filter() does not return results I'm seeing some strange behavior with the latest 1.0 alpha when using extra() with params and filter(). Here is an example based on the Polls app created in the tutorial. {{{ >>> from mysite.polls.models import Poll, Choice >>> p = Poll(question="What's up?", pub_date=datetime.datetime.now()) >>> p.save() >>> polls = Poll.objects.extra(select={'blah': 'select count(*) from polls_poll where id=%s'}, params=[1]) >>> [p for p in polls] [<Poll: Poll object>] >>> [p.blah for p in polls] [1] }}} Looks good so far, but as soon as I add a filter() to it that should return results, I get none: {{{ >>> polls = Poll.objects.extra(select={'blah': 'select count(*) from polls_poll where id=%s'}, params=[1]) >>> polls = polls.filter(question="What's up?") >>> [p for p in polls] [] }}} Note that the filter by itself works fine: {{{ >>> polls = Poll.objects.filter(question="What's up?") >>> [p for p in polls] [<Poll: Poll object>] }}} If I take out the extra() params it also works ok: {{{ >>> polls = Poll.objects.extra(select={'blah': 'select count(*) from polls_poll where id=1'}) >>> polls = polls.filter(question="What's up?") >>> [p for p in polls] [<Poll: Poll object>] >>> [p.blah for p in polls] [1] }}} It's only when I combine with an extra() AND params that the problem shows up. I am using sqlite3. Thanks. nobody valankar@gmail.com extra filter params 0 0 0 0 0 0
8219 2008-08-11 01:56:17 2011-09-28 16:12:17 2022-03-06 03:41:40.835885 Ready for checkin closed contrib.syndication     dev fixed RSS Syndication UnicodeDecodeError i'm generating a rss feed from a model... it works fine.. but if i use LocaleTextCalendar somewhere in the template using some locale (tr_TR.UTF-8) it says: UnicodeDecodeError at /feeds/latest/ 'ascii' codec can't decode byte 0xc4 in position 9: ordinal not in range(128) if i restart the development server and go to a page that doesn't include the LocaleTextCalendar with the locale, then the feed works fine.. But once I go to the page that includes the LocaleTextCalendar with locale, even the page that doesn't have it, won't work.. I searched through all the code if I assign some locale somewhere but nope.. I forgot to use u'' around the code but it still didn't solve this problem even I added u''.. nobody alperkanat   0 1 0 0 0 0
8221 2008-08-11 09:47:49 2011-09-28 16:12:17 2022-03-06 03:41:41.124976 Accepted closed Core (Other)     dev fixed NoReverseMatch should not swallow ImportError/AttributeError In {{{django.core.urlresolver.reverse}}} around line 200, {{{NoReverseMatch}}} is raised without further details. Please provide more details to help debugging. In case of import or attribute errors, please provide the original exception and do not swallow it. nobody eibaan   0 1 0 0 0 0
8223 2008-08-11 13:06:13 2008-08-11 14:51:36 2022-03-06 03:41:41.432046 Unreviewed closed Database layer (models, ORM)     dev invalid Infinite loop caused by ordering The model itself contains no data in the database: {{{ class Syntax(models.Model): name = models.CharField(max_length=32) lexer = models.CharField(max_length=32) order = models.IntegerField(default=10) parent = models.ForeignKey('self', blank=True, null=True) children= models.SmallIntegerField(default=0) class Meta: ordering = ('parent', 'order', 'name') Traceback: File "/Library/Python/2.5/site-packages/django/core/handlers/base.py" in get_response 77. request.path_info) File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py" in resolve 240. sub_match = pattern.resolve(new_path) File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py" in resolve 240. sub_match = pattern.resolve(new_path) File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py" in resolve 179. return self.callback, args, kwargs File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py" in _get_callback 185. self._callback = get_callable(self._callback_str) File "/Users/dcramer/Development/django-compositepks/django/utils/functional.py" in wrapper 130. result = func(*args) File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py" in get_callable 54. lookup_view = getattr(__import__(mod_name, {}, {}, ['']), func_name) File "/Users/dcramer/Development/pastethat/pastes/views.py" in <module> 6. from forms import PasteFileForm, PasteLinkForm, PasteTextForm File "/Users/dcramer/Development/pastethat/pastes/forms.py" in <module> 55. class PasteTextForm(forms.Form): File "/Users/dcramer/Development/pastethat/pastes/forms.py" in PasteTextForm 56. syntax = GroupedModelChoiceField(queryset=Syntax.objects.all(), empty_label='(Automatic)', required=False) File "/Library/Python/2.5/site-packages/django/forms/models.py" in __init__ 475. self.queryset = queryset File "/Library/Python/2.… nobody dcramer   0 0 0 0 0 0
8224 2008-08-11 13:17:09 2008-08-11 13:52:59 2022-03-06 03:41:41.598567 Unreviewed closed Documentation     dev fixed 'Managing files' contains a dead link 'Managing files' at http://www.djangoproject.com/documentation/files/ contains a dead link to http://www.djangoproject.com/documentation/uploading_files/ . Surrounding text: "Most of the time you’ll simply use a File that Django’s given you (i.e. a file attached to an model as above, or perhaps an uploaded file)." nobody arkx   0 0 0 0 0 0
8225 2008-08-11 13:47:02 2008-08-11 14:01:36 2022-03-06 03:41:41.765492 Unreviewed closed contrib.admin     dev fixed Small fix for admin css in RTL mode radio_fields are left aligned, should be right aligned in RTL mode. nobody remohammadi   0 1 0 0 0 0
8226 2008-08-11 14:37:14 2008-08-11 15:13:00 2022-03-06 03:41:41.915958 Unreviewed closed Uncategorized     dev fixed django/contrib/auth/models.py UnicodeDecodeError. Permissions selection widget not shown. The "permission selection" widget was not shown in the "change user" form in the admin interface. I have unicode characters in some of my models' verbose_name attribute and this triggered a bug in django/contrib/auth/models.py. According to what i read [http://www.pointy-stick.com/~malcolm/django-lazy-promises.txt here] you have to call unicode explicitly if you use unicode string with placeholders (e.g. u'%s' % unicode(foo)). This is not done in the Permission model. nobody nfg unicode auth permission 0 1 0 0 0 0
8227 2008-08-11 15:07:17 2011-09-28 16:12:17 2022-03-06 03:41:42.068910 Accepted closed Translations     1.0-alpha fixed Minor bug in italian translation In django/trunk/django/conf/locale/it/LC_MESSAGES/django.po line 4176 msgstr "Sceglie un'opzione valida. '%s non compare tra quelle disponibili." Should be: msgstr "Scegli un'opzione valida. '%s non compare tra quelle disponibili." nobody marcob   0 0 0 0 0 0
8228 2008-08-11 15:17:03 2008-08-11 15:56:20 2022-03-06 03:41:42.211878 Unreviewed closed Uncategorized     dev fixed Failure to use manage.py syncdb after updating to revision 8301. Here is what I did to update my version of django: I deleted the django directory from my site-packages directory. I updated the source code from SVN using 'svn up' in the django trunk directory I run the setup.py script with the install command And after that, the python manage.py syncdb command doesn't work anymore. Here us the trace of the error: {{{ # ~/mysite $ python manage.py syncdb Traceback (most recent call last): File "manage.py", line 11, in ? execute_manager(settings) File "/usr/lib/python2.3/site-packages/django/core/management/__init__.py", line 328, in execute_manager utility.execute() File "/usr/lib/python2.3/site-packages/django/core/management/__init__.py", line 290, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.3/site-packages/django/core/management/base.py", line 77, in run_from_argv self.execute(*args, **options.__dict__) File "/usr/lib/python2.3/site-packages/django/core/management/base.py", line 95, in execute self.validate() File "/usr/lib/python2.3/site-packages/django/core/management/base.py", line 122, in validate num_errors = get_validation_errors(s, app) File "/usr/lib/python2.3/site-packages/django/core/management/validation.py", line 22, in get_validation_errors from django.db import models, connection File "/usr/lib/python2.3/site-packages/django/db/__init__.py", line 16, in ? backend = __import__('%s%s.base' % (_import_path, settings.DATABASE_ENGINE), {}, {}, ['']) File "/usr/lib/python2.3/site-packages/django/db/backends/sqlite3/base.py", line 11, in ? from django.db.backends.sqlite3.creation import DatabaseCreation File "/usr/lib/python2.3/site-packages/django/db/backends/sqlite3/creation.py", line 4, in ? from django.db.backends.creation import BaseDatabaseCreation File "/usr/lib/python2.3/site-packages/django/db/backends/creation.py", line 11, in ? class BaseDatabaseCreation(object): File "/usr/lib/python2.3/site-packages/djang… nobody guneeyoufix@online.fr   0 0 0 0 0 0
8229 2008-08-11 15:24:57 2011-09-28 16:12:17 2022-03-06 03:41:42.346340 Accepted closed contrib.localflavor     dev fixed Spanish ID card checksum validation fails on a specific case The Spanish localflavor has a form field that validates a Spanish ID card number. The function calculates the algorithm based on a module 10 checksum. There is a specific case, when the result of the checksum is 0, that the function raises a "string index out of range" error. A simple transformation has to be applied on this case. garcia_marc garcia_marc es spanish 0 1 0 0 0 0
8230 2008-08-11 15:39:42 2008-08-11 16:00:47 2022-03-06 03:41:42.505670 Unreviewed closed Uncategorized     dev fixed Changeset 8303 introduced a syntax error I'm sure it will be corrected seconds after I submit this, but [8303] introduced a typo in line 9 of django/db/backends/__init__.py http://code.djangoproject.com/browser/django/trunk/django/db/backends/__init__.py#L9 nobody evan_schulz   0 0 0 0 0 0
8231 2008-08-11 16:08:58 2011-09-28 16:12:17 2022-03-06 03:41:42.672838 Accepted closed Documentation     dev duplicate tutorial part 2 is obsolete. tutorial part 2 is obsolete. it says different from /documentation/admin/ nobody anonymous   0 0 0 0 0 0
8232 2008-08-11 16:27:25 2008-08-11 23:32:29 2022-03-06 03:41:42.810403 Unreviewed closed Core (Management commands)     dev invalid django-admin.py should work with the `yes` utility I am trying to build `./django-admin.py test` into a build script and if a previous invokation has failed this command will ask if the user wants to create a database. As the build script is non-interactive I would like a way to specify "yes" to this question from the command line. The two common approaches to this would be: * Add an --force-yes option, or similar * Read STDIN for the value so that the UNIX `yes` command could be piped into it nobody nslater   0 0 0 0 0 0
8233 2008-08-11 17:35:12 2008-08-23 01:10:47 2022-03-06 03:41:42.982266 Unreviewed closed Validators     dev wontfix Decimal Field can accept float value The Decimal Field accepts the following types: * a ''decimal.Decimal'' instance value; * a string representation of a float; What about to accept float values too? The float value can be converted using the DecimalField ''format_number'' method, see the code above: {{{ def to_python(self, value): if value is None: return value try: # if the value is a float, convert it to a string and let decimal.Decimal do the work if isinstance(value, float): value = self.format_number(value) return decimal.Decimal(value) except decimal.InvalidOperation: raise validators.ValidationError( _("This value must be a decimal number.")) }}} nobody michelts   0 1 0 0 0 0
8234 2008-08-11 18:29:48 2011-09-28 16:12:17 2022-03-06 03:41:43.147974 Ready for checkin closed Documentation     dev fixed typo in cache middleware docs towards the end there's a spot that says 'middlewaare' nobody cgrady docs 0 1 0 0 0 0
8235 2008-08-11 18:57:07 2011-09-28 16:12:16 2022-03-06 03:41:43.299083 Unreviewed closed Testing framework     dev fixed admin_scripts tests deprecation warning on Linux/Python 2.6b2 Running the admin_scripts tests on Python 2.6 beta 2 I get a deprecation warning about popen3 (though that doesn't cause the tests to fail): {{{ user@gutsy:~/tmp/django/trunk/tests$ /homedir/Python/Python-2.6b2/python runtests.py --settings=testsettings admin_scripts /homedir/tmp/django/trunk/tests/regressiontests/admin_scripts/tests.py:109: DeprecationWarning: os.popen3 is deprecated. Use the subprocess module. stdin, stdout, stderr = os.popen3(cmd) ---------------------------------------------------------------------- Ran 109 tests in 22.997s OK }}} I do not get the warning running on Windows, so this may be specific to the way I built python (on Windows I used a prebuilt binary), though the warning is also seen in the Python community buildbot output: http://www.python.org/dev/buildbot/community/all/?show=sparc%20Solaris%2010%20trunk I don't see any harm in using subprocess if it's available so I'll attach a patch that does that. Patch was tested on 1 -- Linux Python 2.4.4, 2.5.1, 2.5b2 2 -- Windows Pyhton 2.3.5, 2.5.1, 2.6b2 nobody kmtracey python26 0 1 0 0 0 0
8236 2008-08-11 19:00:39 2011-09-28 16:12:17 2022-03-06 03:41:43.443432 Accepted closed Core (Other)     dev fixed Signals Documentation Signals have been un-documented for as long as I can remember. To introduce a backwards-incompatible change minus any documentation at all is a major "bug" in that those of us unfamiliar with Django internals are now unable to follow trunk until some kind of documentation is released. While it's not difficult to see how to define custom signals from the BackwardsIncompatible wiki page, there's no mention of how to handle built-in pre_save and other similar signals on a per-model basis. Plus, relying on a very brief scribble on an obscure wiki page is sure to cause lots of unecessary changes. While the signals rewrite is still fresh on the minds of the developers, please take 15 minutes to document this so we've got something sturdy to go from. Previously a few blogs had produced some very high quality documentation for signals, but we're pretty much "stranded" right now. jacob gtaylor signals 0 0 0 0 0 0
8237 2008-08-11 19:01:17 2008-08-11 19:05:31 2022-03-06 03:41:43.605545 Unreviewed closed Uncategorized     dev wontfix Apply Meta ordering to SQL table This is at least applicable for MySQL, but it would make sense to use the ordering Meta tag to apply the default ordering on the table. {{{ ALTER TABLE `businesses_businessmeta` ORDER BY `name` }}} nobody dcramer   0 0 0 0 0 0
8239 2008-08-11 19:20:04 2011-09-28 16:12:17 2022-03-06 03:41:43.880704 Accepted closed Core (Other)     dev fixed django.core.management uses "from imp import find_module" The early lookup of imp.find_module causes problems when run under Google App Engine, which doesn't support this function. It would be better to just import the imp module (which exists in a near-empty state in App Engine) and use imp.find_module later on -- then the failures aren't quite so fatal, and easier to debug. nobody Guido van Rossum <guido@python.org>   0 1 0 0 0 0
8240 2008-08-11 20:01:25 2008-08-11 20:05:47 2022-03-06 03:41:44.013608 Unreviewed closed Uncategorized     dev invalid settings no longer availiable in urls.py the edit of /django/core/management/__init__.py in [8282] has made it so that settings are no longer available in a urls.py settings.py {{{ MEDIA_ROOT = '/media/' }}} urls.py {{{ from django.conf.urls.defaults import * from django.conf import settings urlpatterns = patterns('', (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), ) }}} this setup will always give a 404 when you try to view the static media. It is not the view but settings.MEDIA_ROOT is not accessible. any of the settings can not be accessed. nobody mackenzie@definitionsystems.ca   0 0 0 0 0 0
8241 2008-08-11 21:16:26 2011-09-28 16:12:17 2022-03-06 03:41:44.161238 Accepted closed contrib.admin     dev fixed Primary ForeignKeys don't work with FormSets Using this UserProfile as an example: {{{ class UserProfile(models.Model): user = models.OneToOneField(primary_key=True) nickname = models.CharField(max_length=30) from django.contrib.auth.models import User from django.contrib.auth.admin import UserAdmin from django.contrib.admin import site, StackedInline class UserProfileAdmin(StackedInline) model = UserProfile max_num = 1 UserAdmin.inlines = UserAdmin.inlines + [UserProfileAdmin] site.unregister(User) site.register(User, UserAdmin) }}} Trying to save a User from the admin causes a KeyError: 'user_id' because the primary key doesn't get rendered in the form. brosner sciyoshi   0 1 0 1 0 0
8242 2008-08-11 22:01:37 2011-09-28 16:12:17 2022-03-06 03:41:44.329306 Accepted closed Core (Other)     dev fixed INSTALLED_APPS with "foo.*" not populated consistently On different filesystems, but using the same list of INSTALLED_APPS, the final populated list of INSTALLED_APPS can vary. os.listdir's return list is arbitrary, so that [http://code.djangoproject.com/browser/django/trunk/django/conf/__init__.py?rev=7848#L111 the apps] are loaded differently. The most obvious display of this issue is where foo.* apps are listed in the admin index. However, applications might also expect to be initialized in a stable order, and Django's globbing currently fails at that. I think simply sorting the results of listdir would address this. Obviously, providing consistent tests for this is difficult, but I have observed it in the wild. jacob jdunck   0 1 0 0 0 0
8243 2008-08-11 22:16:03 2008-08-12 18:28:55 2022-03-06 03:41:44.494874 Unreviewed closed Documentation     dev duplicate model-api docs not updated to FileField refactor Please see patch attached to ticket msaelices msaelices   0 1 0 0 0 0
8244 2008-08-11 22:30:58 2011-09-28 16:12:17 2022-03-06 03:41:44.636271 Accepted closed Testing framework     dev fixed File storage tests fail intermittantly when run in parallel The file storage tests use {{{tempfile.gettempdir()}}} as a storage location, and thus parallel test runners can clobber each other. They need to be fixed to each use their own sandbox and to clean it up after the run. nobody jacob   0 0 0 0 0 0
8245 2008-08-11 23:28:48 2009-09-28 21:33:27 2022-03-06 03:41:44.775692 Accepted closed contrib.admin     dev fixed Exceptions in admin.py can get hidden by an AlreadyRegistered exception Consider the following admin.py file: {{{ #!python from django.contrib import admin from testpro.testapp.models import * admin.site.register(Screenshot) raise Exception("Exception that can be much less obvious than this staged one (like a missed import).") }}} It's loaded by admin.autodiscover() in urls.py. Now start the ''development server'' in ''debug mode'' and access the admin. What happens is this: * On the '''first request after starting the dev server''' our test exception is shown as the response. {{{ ImproperlyConfigured at /admin/ Error while importing URLconf 'testpro.urls': Exception that can be much less obvious than this staged one (like a missed import). }}} * For '''every subsequent request''' this exception is the response: {{{ ImproperlyConfigured at /admin/ Error while importing URLconf 'testpro.urls': The model Screenshot is already registered }}} Needless to say this can be ''really'' frustrating to debug if one does not see the first and correct exception by chance. nobody jarrow     1 0 0 0  
8220 2008-08-11 04:35:01 2011-07-27 02:20:41 2022-03-06 03:41:40.984889 Unreviewed closed contrib.admin Uncategorized Normal dev wontfix ForeignKey dropdown sorting in Admin I have a model with a unique ForeignKey field called "user" to the django.contrib.auth User model. When I edit the model in admin, the dropdown list shows users in the order they are in the database, not sorted. I would like to be able to sort the users in the dropdown list alphabetically, but cannot see a way how I can do this currently. Considering the User model already has an ordering field in the UserAdmin class (django.contrib.auth.admin), would it be possible to also use this field for sorting the data in a ForeignKey dropdown box? nobody robvdl ForeignKey sort ordering 0 0 0 0 0 0
8222 2008-08-11 10:38:18 2012-11-08 01:51:32 2022-03-06 03:41:41.292269 Accepted closed File uploads/storage Uncategorized Normal dev wontfix Storage should reset file's cursor after saving I had some trouble finding the cause of that problem. Basically, I was trying to save an uploaded image and then manipulate that image with PIL. But the following didn't work: {{{ from PIL import Image storage.save('/images/image.gif', uploaded_file) # Save the original uploaded_image = Image.open(uploaded_file) ... }}} After debugging PIL I realised that it assumes the given file starts at position 0. Therefore, the following works: {{{ from PIL import Image storage.save('/images/image.gif', uploaded_file) # Save the original uploaded_file.seek(0) # >> REWIND FILE << uploaded_image = Image.open(uploaded_file) ... }}} I think it would be good practice to automatically rewind the file after it's been saved, so that other tools can process the file without having to rewind it manually. That would feel more logical from an outside perspective. Patch attached. nobody julien   0 1 0 0 0 0
8238 2008-08-11 19:16:51 2012-04-05 11:17:12 2022-03-06 03:41:43.744857 Accepted closed Database layer (models, ORM) Uncategorized Normal dev fixed django/db/__init__.py assumes it is loaded from the filesystem There is code in the django.db package __init__.py that lists the available db backends. Unfortunately this code uses os.listdir() on a directory derived from __file__, and when loaded from a zip archive, this doesn't work. I have a quick hack that works around this, but perhaps there's a better way. nobody Guido van Rossum <guido@python.org>   0 1 0 0 0 0

Advanced export

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

CSV options:

CREATE TABLE tickets (
        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 · Queries took 1025.433ms