119 rows where "changetime" is on date 2007-09-14

View and edit SQL

Suggested facets: stage, component, type, severity, version, resolution, owner, has_patch, needs_better_patch, needs_tests, needs_docs, created (date), last_pulled_from_trac (date)

changetime (date)

  • 2007-09-14 · 119
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
208 2005-07-26 14:35:20 2007-09-14 15:12:29 2019-06-24 00:17:28.829295 Ready for checkin closed Template system enhancement normal master fixed Allow the strings the cycle tag uses to contain spaces I would like to be able to use the cycle tag like so: {% cycle <td class="tdClass">,</tr><tr><td class="tdClass"> %} The current cycle tag (as I understand it) does not allow spaces or a way to escape spaces. SmileyChris anonymous sprintsept14 0 1 0 0 0 0
546 2005-09-23 10:20:36 2007-09-14 16:05:33 2019-06-24 00:21:06.521229 Accepted closed Template system defect normal   fixed [patch] make render_to_string and render_to_response use select_template The attached patch looks for a ";" in the template_name. If there is one, it will split the template_name on ";" and use the resulting list with select_template instead of passing on the template_name to get_template. That way the shortened rendering syntax can be used with template-selection, too. cmcavoy hugo <gb@bofh.ms>   0 1 0 0 0 0
1760 2006-05-04 08:50:51 2007-09-14 13:56:36 2019-06-24 00:33:57.480443 Ready for checkin closed Database layer (models, ORM) defect normal master fixed order_with_respect_to doesn't work with MySQL Inserting/updating an inline-edited object that has `order_with_respect_to` enabled results in the following traceback: {{{ Traceback (most recent call last): [snip] File "lib/django/django/db/models/base.py" in save File "lib/django/django/db/backends/util.py" in execute File "lib/django/django/db/backends/mysql/base.py" in execute File "/usr/lib64/python2.4/site-packages/MySQLdb/cursors.py" in execute 137. self.errorhandler(self, exc, value) File "/usr/lib64/python2.4/site-packages/MySQLdb/connections.py" in defaulterrorhandler 33. raise errorclass, errorvalue OperationalError at /admin/products/productlocalization/4445/ (1093, "You can't specify target table 'products_download' for update in FROM clause") }}} The SQL query causing this problem is: {{{ #!sql INSERT INTO `products_download` (`product_id`,`title`,`file`,`type`,`_order`) VALUES (%s,%s,%s,%s,(SELECT COUNT(*) FROM `products_download` WHERE `product_id` = %s)) }}} Apparently this is due to a limitation of MySQL regarding subqueries, [http://dev.mysql.com/doc/refman/5.0/en/update.html documented] on the page describing the `UPDATE` statement: ''Currently, you cannot update a table and select from the same table in a subquery.'' nobody Christopher Lenz <cmlenz@gmx.de>   0 1 0 0 0 0
1795 2006-05-07 17:00:16 2007-09-14 01:01:03 2019-06-24 00:34:20.368807 Ready for checkin closed Generic views enhancement normal master fixed [patch] Addition of page_range in paginator.py and generic.list_detail.py When using generic views, the desired effect would be: {% if is_paginated %} <div class="tablecontrols"> {% for page_number in '''page_range''' %} {% ifequal page_number page %} {{ page_number }} {% else %} <a href="/myapp/clients/{{ page_number }}/" title="Go to page {{ page_number }}">{{ page_number }}</a> {% endifequal %} {% endfor %} </div> {% endif %} to dump out a page list like: [1] [2] [3] [4] [5] [6] Since some searching turned up no way to do this within the view and I imagine this to be a common problem, I patched "django/core/paginator.py" and "django/views/generic/list_detail.py" to incorporate a new context variable, "page_range". Paginator simply generates a 1-based range up to the total pages. Attached are the patch files. nobody polarcowz@gmail.com pagination 0 1 0 0 0 0
1799 2006-05-08 11:30:12 2007-09-14 18:26:41 2019-06-24 00:34:22.877020 Accepted closed Forms enhancement trivial   wontfix Replace dots by dashes or hyphens from form fields id's of related objects Dots in html id's gives an error in CSS when trying to assign styles. maybe this will do: {{{ def get_id(self): "Returns the HTML 'id' attribute for this form field." return FORM_FIELD_ID_PREFIX + self.field_name.replace('.', '_') }}} nobody David Elias   0 1 0 0 0 0
2151 2006-06-14 00:19:05 2007-09-14 19:12:56 2019-06-24 00:38:07.691734 Design decision needed closed Core (Other) enhancement normal   duplicate Support app renaming in INSTALLED_APPS Reference thread: http://groups.google.com/group/django-developers/browse_thread/thread/7197d27127494ee2/df18ee9b91ba383c Several implementations were proposed, the one that seems to be most favored is: {{{ INSTALLED_APPS = ( 'foo.bar.baz', ('foo.quux.baz', 'baz2') ) }}} anonymous mattmcc   0 0 0 0 0 0
2319 2006-07-10 00:25:09 2007-09-14 00:52:39 2019-06-24 00:39:55.106435 Ready for checkin closed contrib.admin defect normal   fixed Sites documentation clarification regarding "view on site" button The sites framework documentation does not mention that it is required to be installed for the "view on site" button in the admin interface to work. It might be helpful to clarify it in the docs as well as in the get_absolute_url model section. nobody chris moffitt   0 1 0 0 0 0
2634 2006-08-31 06:29:53 2007-09-14 09:36:55 2019-06-24 00:43:16.895153 Accepted closed Contrib apps defect normal other branch wontfix [search-api] Lucene issues with UTF Here http://code.djangoproject.com/changeset/3632 - information about adding search-api branch for Brian Beck's SoC project. I have 2 major bugs in Lucene backend (lucene.py): 1. No index in no-utf encoding. My database and Django-site in cp-1251 (Russian-Ukrainian). So i have 'InvalidArgsError' bug when i call indexer.update() method. Exception Value: (, '__init__', ('annotation', '\xe0\xe0\xe0\xe0\xe0\xe0\xe0\xe0\xe0', , )) \xe0..\xe0 - this is my russian text in Annotation field 2. When i complete update index in UTF, and use search like this: for hit in News_Indexer.search(result_query): result.append(hit.instance) And update index once again - i have Java Exception: 'Cant delete file' or 'cant create file' nobody Scater search-api;beck;lucene;index; 0 0 0 0 0 0
2842 2006-09-28 17:18:28 2007-09-14 21:35:16 2019-06-24 00:45:27.739843 Unreviewed closed Validators defect normal master wontfix AlwaysMatchesOtherField validator fails if other field not present The AlwaysMatchesOtherField validator tests against all_data[self.other] without first checking for the existence of the key self.other. If it's not present, you get MultiValueDictKeyError. Note that this happens even if the other field has is_required=True. See #2841 :-) nobody dave AT avaragado.org   0 0 0 0 0 0
2962 2006-10-27 15:38:22 2007-09-14 18:15:06 2019-06-24 00:46:43.971384 Unreviewed closed contrib.admin defect normal   fixed non-integer primary keys and raw_id_admin This is an old ticket #586 that was fixed in chgsets 785 and 790. It does not work today however (post-mr problem?). I have a foreign key related table with a CharField primary key and with raw_id_admin the primary keys are listed in the input field via raw_id_admin popup but I get an error from the validator stating that this is not a comma-separated list of integers. nobody atlithorn   0 0 0 0 0 0
2976 2006-11-04 09:26:51 2007-09-14 14:24:27 2019-06-24 00:46:52.783302 Design decision needed closed Core (Other) defect major master fixed [patch] repr(uploadfile) should not contain the file content If uploadfile['content'] is very long, repr(uploadfile) produce non-readable stuff. It sometimes make a browser hang. A significant performance problem occur on following scenario. 1. You have a model that has many nullable/blankable fields with a FileField. 1. You upload big file, without filling nullable fields. 1. In view, manipulator.save is called. 1. for each field, validation is called. 1. for nullable field, while getting field from new_data, repr(new_data) is called, which trigger repr(upload_file) 1. repr(upload_file) is very long. It is called for each nullable field. this take long time. (taked 4s~12s for my app) Sorry for my poor explanation. nobody Jeong-Min Lee <falsetru@gmail.com>   0 1 0 0 0 0
3136 2006-12-12 13:34:39 2007-09-14 19:53:11 2019-06-24 00:48:40.274317 Design decision needed closed contrib.admin defect minor   fixed widgets.css - Calendar & Clocks Current css: {{{ .clockbox { width:9em; } }}} Better css for multilanguage and long header text than 'Time'. {{{ .clockbox { width:auto; } }}} nobody karsu [[ at ]] kuosa { dot } net css 0 1 0 0 0 0
3146 2006-12-15 18:53:43 2007-09-14 16:48:48 2019-06-24 00:48:46.579497 Ready for checkin closed contrib.admin defect normal master fixed 'str' object has no attribute 'strftime' Error when the foreign key is a date When a model use a date as foreign key, the admin interface crash when creating or editing an object. For exemple, the following model crash when creating Event in the admin interface: {{{ class Day(models.Model): date = models.DateField(primary_key=True, db_column='Date') class Admin: pass class Event(models.Model): id_event = models.AutoField(primary_key=True, db_column='idEvent') date = models.ForeignKey(JourneeElectorale, db_column='Date') class Admin: pass }}} Complete error is : Exception Type: AttributeError Exception Value: 'str' object has no attribute 'strftime' Exception Location: /usr/lib/python2.4/site-packages/django/db/models/fields/__init__.py in get_db_prep_save, line 467 nobody Ikipou@gmail.com date foreign key 0 1 0 0 0 0
3419 2007-02-02 20:36:13 2007-09-14 23:04:59 2019-06-24 00:51:39.492046 Accepted closed Uncategorized     0.95 fixed exception value not html-escaped in exception view when raising an exception whose exception value contains html metachars like "<", these are not properly escaped in the exception view. example: {{{ # Create your view here. from myapp.models import mydbobject function throwexc(request): raise Exception, mydbobject.objects.all() }}} gives you: {{{ Exception at /throwexc/ [<foo>, <bar>] Request Method: GET Request URL: http://localhost:8000/throwexc/ Exception Type: Exception: Exception Value: [, ] }}} ([, ] having html source code [<foo>, <bar>]) nobody webograph@eml.cc   0 0 0 0 0 0
3421 2007-02-03 05:12:37 2007-09-14 02:11:24 2019-06-24 00:51:40.770037 Ready for checkin closed Forms     master fixed URLField does not validate IP addresses, or localhost This URL {{{ }}} doesn't validate. I think it should, because that's where Django's own server runs. Also sites can be run without a domain, only using the IP. This doesn't validate either: {{{ }}} nobody mirrorballu2@gmail.com URLField 0 1 0 0 0 0
3509 2007-02-16 06:16:20 2007-09-14 14:36:27 2019-06-24 00:52:36.448403 Design decision needed closed Forms     master invalid [patch] django.newforms.util.smart_unicode() is not smart enough :) Guys django.newforms.util.smart_unicode() needs to be smarter to don't unicode None, True and False values and leave them as they are. The patch is attached. nobody Anton Khalikov <anton@khalikov.ru>   0 1 0 0 0 0
3527 2007-02-19 13:30:45 2007-09-14 10:04:45 2019-06-24 00:52:47.746993 Design decision needed closed Core (Other)     master wontfix better debug traceback with code executing... The django debug traceback ist good. But the colubrids one is better: http://trac.pocoo.org/browser/colubrid/trunk/colubrid/debug.py With this debug traceback you can execute python code via a small AJAX script. Everything is in the debug.py file from above. nobody Jens debug, traceback 0 1 0 0 0 0
3578 2007-02-26 13:05:52 2007-09-14 13:29:20 2019-06-24 00:53:19.555643 Accepted closed Forms     master fixed newforms EmailField takes the wrong max_length when rendered as html and a CharField exists. If I have a form with CharField and a form with EmailField like bellow. The TextInput widget in the EmailField takes the max_length attribute from the prevous form and displays the input html with a wrong attribute. The validation of the field is OK. I guess this happens in the TextInput widget, but I can't figure it where on my own to help. {{{ #!python from django import newforms as forms from django.newforms.widgets import * attrs1={'class':'aclass'} class form1(forms.Form): field1 = forms.CharField(widget=TextInput(attrs=attrs1),max_length=30) class form2(forms.Form): field2 = forms.EmailField(widget=TextInput(attrs=attrs1),max_length=10) f2 = form2() f2.as_ul() Out[12]: u'<li><label for="id_field2">Field2:</label> <input id="id_field2" type="text" class="aclass" name="field2" maxlength="30" /></li>' f2 = form2({'field2':'over10@domain.com'}) f2.is_valid() Out[9]: False In [10]: f2.errors Out[10]: {'field2': [u'Ensure this value has at most 10 characters.'] }}} alagu Georgi Stanojevski <glisha gmail com>   0 1 1 1 0 0
3584 2007-02-26 20:02:04 2007-09-14 21:49:17 2019-06-24 00:53:23.371065 Design decision needed closed Template system     master wontfix Specifying default context instance in settings There should be a way to specify default context in settings instead of appending context_instance=RequestContext(request) to every single render_to_response call in whole application. This one make developers cry. nobody bugs@almad.net   0 0 0 0 0 0
3638 2007-03-02 22:18:22 2007-09-14 16:30:47 2019-06-24 00:53:57.661371 Accepted closed Testing framework     master invalid loading python fixtures is broken Reproduce: Use this fixture: {{{ #!python [{"pk": "1", "model": "main.category", "fields": {"link_name": "all", "name": "\/", "parent": null, "description": ""}}, {"pk": "2", "model": "main.category", "fields": {"link_name": "accessoires", "name": "Accessoires", "parent": 1, "description": ""}}, {"pk": "3", "model": "main.category", "fields": {"link_name": "art_and_design", "name": "Art & Design", "parent": 1, "description": ""}}] }}} with this model: {{{ #!python class Category(models.Model): class Admin: pass class Meta: ordering =['name'] name = models.CharField(maxlength=50) link_name = models.SlugField(unique=True) description = models.TextField(blank=True) parent = models.ForeignKey('self',blank=True,null=True) def tree(self,tree=[]): tree.append( self ) children = self.category_set.all() child_tree = [] for c in children: if c.name != '/': c.tree(child_tree) if not child_tree == []: tree.append(child_tree) return tree def link(self): return str(self)[2:] def __str__(self): if not self.parent : return self.name return str(self.parent) + '/' + self.name }}} now try to load it via syncdb (while you are at it you could clarify in the documentation that python fixtures need to carry the extension .python nobody donlaverty fixture 0 0 0 0 0 0
3697 2007-03-10 10:04:53 2007-09-14 05:57:10 2019-06-24 00:54:34.477906 Design decision needed closed Core (Other)     master wontfix ability to mark entire directory (and subdirs) as login_required/is_staff It would be very nice to have the ability to mark an entire directory (URL Path) as login_required/etc. For example, everything below /admin/ should be checked with is_staff. There are a number of reasons for this: 1) it's tidier and more DRY-ish to not have decorators on every single view. 2) it's safer - by decorating a directory rather than every view, you're less likely to forget one. 3) it's a common system - generally everything under /admin/ needs a staff member, everything in /user/ needs a logged in user, etc. I'm not sure how this could be done - possibly by adding a parameter to a URL conf (although I don't know if that's the "right" place), or by setting a flag in a views file. nobody Simon G. <dev@simon.net.nz> pie-in-the-sky-feature-requests 0 0 0 0 0 0
3724 2007-03-14 08:23:23 2007-09-14 17:06:08 2019-06-24 00:54:51.487289 Design decision needed closed contrib.admin     master invalid Add Links for ImageField and FileField in admin_list.py When I added ImageField or FileField to '''list_display_links''', the result was not what I expected. I saw the code in admin_list.py, the function '''items_for_result''', there was no check for ImageField and FileFiled, I suggested to add following snippts: {{{ # Line 176 elif isinstance(f, models.ImageField) or isinstance(f, models.FileField): if field_val is not None: result_repr = ('<a href="%s %s">%s</a>' % (settings.MEDIA_URL, field_val, field_val)) else: result_repr = EMPTY_CHANGELIST_VALUE }}} I hope the django team can consider about that. Thanks in advance. nobody nicholasdsj@gmail.com ImageField FileField 0 0 0 0 0 0
3729 2007-03-14 15:39:49 2007-09-14 23:27:50 2019-06-24 00:54:54.704779 Unreviewed closed Database layer (models, ORM)     master worksforme For integer field inside Model.save() is provided string value when 'choices' option is used I found that inside save() method of model field declared as PositiveSmallIntegerField actually is string! So instead 2 I have "2" as self.status value. If 'choices = STATUS_LIST' will be removed from field declaration bug will disappear and inside of save() I have integer as it should be. {{{ from django.db import models import types STATUS_LIST = ( (1, 'New'), (2, 'Public'), (4, 'Hidden'), ) class Dummy(models.Model): name = models.CharField(maxlength=16) status = models.PositiveSmallIntegerField(default = 1, choices = STATUS_LIST) class Admin: pass def __str__(self): return self.name def save(self): print "Dummy.save status=%s, type=%s" % (self.status, type(self.status)) assert type(self.status) == types.IntType, \ "instead of IntType received %s, value is %s" % (type(self.status), self.status) super(Dummy, self).save() }}} nobody EntropyHacker choices, integerfield 0 0 0 0 0 0
3731 2007-03-14 16:01:57 2007-09-14 21:02:35 2019-06-24 00:54:55.988345 Unreviewed closed Testing framework     master worksforme Missing exception output with `manage.py test` I tried to set up a splitted test environment today. I created a ''tests'' directory within my application directory and added an ''!__init!__.py'' file. This looks like that: {{{ mysite - myapp - tests - __init__.py }}} Within the ''!__init!__.py'' file I imported my test cases from other modules. After that I executed the test suite via: {{{ bschwarze@devbox:~/mysite$ ./manage.py test Creating test database... Creating table django_admin_log Creating table auth_message Creating table auth_group Creating table auth_user Creating table auth_permission Creating table django_content_type Creating table django_session Creating table django_site Creating table myapp_car Installing index for admin.LogEntry model Installing index for auth.Message model Installing index for auth.Permission model Installing index for myapp.Car model Loading 'initial_data' fixtures... No fixtures found. ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK Destroying test database... }}} But it reported '''Run 0 tests ...''', although I was sure I added my tests correctly. After asking for help in Django IRC, I tried to import my ''tests'' module in Django shell. This gave me an import error. After fixing that everything worked fine. I think ''manage.py test'' should output such import errors, too. ttarabula Benjamin Schwarze sprintsept14 0 0 0 0 0 0
3757 2007-03-18 22:21:51 2007-09-14 21:40:10 2019-06-24 00:55:12.285231 Unreviewed closed contrib.formtools     master duplicate FormPreview throwing AttributeError? I wanted to play around with this, but it throws an AttributeError. The problem looks to be coming from the self.form.fields in the unused_name function in preview.py. That value only exists in Form instances, but the documentation for FormPreview says it needs a Form class. Should unused_name be changed to use self.form.base_fields? -e nobody erickt@dslextreme.com   0 1 0 0 0 0
3766 2007-03-19 23:53:54 2007-09-14 08:37:09 2019-06-24 00:55:17.875428 Ready for checkin closed Contrib apps     master fixed [patch] django.contrib.sites should cache to reduce queries like contenttypes does As you did with the CONTENT_TYPE_CACHE I would suggest the same be applied with the django.contrib.sites app so that multiple calls to get current (and similar) are not extra queries nobody David Cramer <dcramer@gmail.com> sites 0 1 0 0 0 0
3776 2007-03-21 15:13:10 2007-09-14 05:51:06 2019-06-24 00:55:24.053004 Design decision needed closed Contrib apps     master wontfix user sessions Django has anonymous sessions, tracked by cookies. The session can not be accessed from a different machine for the same user, which drastically reduces the usefulness of sessions. Another approach to save something persistently for a user it to update the UserProfile model and create a new row for the same, but this will require altering the corresponding table every time we realize we have one more thing to save. What I am proposing is this: we update the User model, and add a "session_data = models.TextField(_('session data'))" to it. Additionally in User.__init__ we add a "self.session = SessionWrapper('user:%s' % self.id)". We will have to add a .save() method on django.contrib.sessions.middleware.SessionWrapper, and optionally update django.contrib.sessions.middleware.SessionMiddleware.process_response to call request.user.session.save() if request.user.session.modified is true. nobody upadhyay@gmail.com   0 0 0 0 0 0
3848 2007-03-28 14:34:18 2007-09-14 07:18:27 2019-06-24 00:56:09.309334 Ready for checkin closed Core (Other)     master fixed Image validator: fails to spot image truncation or corruption django.core.validators.isValidImage in trunk does not detect corrupt or truncated images: more PIL calls than just the constructor need to be made in order to effect the full set of checks PIL is capable of, because most PIL.xxxImagePlugin modules read no more data than is necessary at construction time. One of load() or verify() (or both if possible) must be called on the PIL.Image object in order to perform the fullest set of checks. To reproduce: * Prepare truncated/corrupted PNG or JPEG files with vi, dd, based on some known-good images, and leaving the first few bytes of the image header intact. * Test that PIL can spot that the images are corrupt: {{{ >>> from PIL import Image >>> from cStringIO import StringIO >>> i = Image.open(StringIO(open('hi_truncated.png', 'r').read())) >>> i.verify() [...] IndexError: string index out of range >>> i = Image.open(StringIO(open('hi_truncated.jpg', 'r').read())) >>> i.load() [...] IOError: image file is truncated (46 bytes not processed) >>> }}} * Set up a model with an ImageField * Try to upload one of the bad images you prepared via the django admin interface. Expected behaviour: * Upload will be rejected with the message "Upload a valid image. The file you uploaded was either not an image or a corrupted image." Observed behaviour as of [4836] (and presumably all the way back to [3]): * Image is accepted as if it were non-corrupt. This is my first django bug report, so I hope I'm doing it right. I could provide a test case if you like, but I noticed that the existing test framework makes no attempt to test this area of code in order to avoid a dependency on PIL at test time. nobody andrewc-djangotrac1@piffle.org images, image, validation, verification, PIL 0 1 0 0 0 0
3873 2007-03-30 00:39:59 2007-09-14 15:44:14 2019-06-24 00:56:24.767910 Unreviewed closed contrib.admin     master worksforme Admin interface showing empty values Developping a component-based application, i find that djando is a great framework. Thank you all. The "difficult" part in this application is that models are imported from a directory (in including a file named models.py so that django does the import). Django accepts this setup quite well, but i recently experienced some problems with the admin interface: it showed empty values for all fields, all objects. After writing a fix, the "save" button returned some errors, so i wrote another fix. Don't know what they're worth, but my admin interface is functional here again. nobody phil.django@itsmart.fr models 0 1 0 1 0 0
3898 2007-04-02 11:56:08 2007-09-14 05:38:32 2019-06-24 00:56:40.374177 Design decision needed closed Forms     master wontfix reinstate the model field type css classes to form elements generated with newforms' as_* methods. i'd like to see the model field type classes from oldforms (vIntegerField, vEmailField, vPasswordField, etc) re-applied to form elements generated by newforms' as_* methods. these were great as they allowed differently sized field elements depending on the data type. e.g. you might want an input text tag for an email address to be wider than an input text tag for an integer or a date. if people don't want to make use of these, they can ignore them, but i don't see the harm in having them in there as hooks besides a few bytes in html size, especially for the as_* methods. if that's a problem, they could be switched on or off in settings.py or when the form.as_* and field.as_* methods are called. not having these hooks appears to be a fairly significant departure from the oldforms functionality, so i'd like to see them reinstated if there are no major objections. nobody mrmachine newforms oldforms model css classes form_for_model form_for_instance 0 0 0 0 0 0
3902 2007-04-02 20:47:15 2007-09-14 08:04:07 2019-06-24 00:56:42.882045 Ready for checkin closed Documentation     master fixed Add installation docs for Windows users The web page http://www.djangoproject.com/documentation/install has instructions for installing the official version which does not work for Windows- windows has no "sudo" and furthermore, "setup.py install" complains about \django\ having no __init__.py nobody yary h <not.com@gmail.com>   0 1 0 0 0 0
3922 2007-04-04 15:30:02 2007-09-14 01:45:26 2019-06-24 00:56:55.400141 Accepted closed Forms     master fixed formfield_callback in form_for_model also changes refering model Using formfield_callback with newforms form.form_for_model will also change the model you are refering to. {{{ def CategoryCallback(f, **kwargs): if not "cat_" in f.name: f.name = 'cat_'+f.name return f.formfield(**kwargs) >>> w = Writer(name='Bob Woodward') >>> Article(headline='Test article', pub_date=datetime.date(1988, 1, 4), writer=w, article='Hello.') <Article: Test article> >>> ArticleForm = form_for_model(Article, formfield_callback=CategoryCallback) >>> f = ArticleForm(auto_id=False) >>> print f <tr><th>Headline:</th><td><input type="text" name="cat_headline" maxlength="50" /></td></tr> <tr><th>Pub date:</th><td><input type="text" name="cat_pub_date" /></td></tr> <tr><th>Writer:</th><td><select name="cat_writer"> <option value="" selected="selected">---------</option> </select></td></tr> <tr><th>Article:</th><td><textarea name="cat_article"></textarea></td></tr> <tr><th>Categories:</th><td><select multiple="multiple" name="cat_categories"> </select><br /> Hold down "Control", or "Command" on a Mac, to select more than one.</td></tr> >>> w = Writer(name='Bob Woodward') }}} but then doing this one (same one as in the beginning): {{{ >>> Article(headline='Test article', pub_date=datetime.date(1988, 1, 4), writer=w, article='Hello.') }}} fails with: {{{ Traceback (most recent call last): File "/Users/gandalf/django/django_src/django/test/doctest.py", line 1243, in __run compileflags, 1) in test.globs File "<doctest modeltests.model_forms_callback.models.__test__.API_TESTS[16]>", line 1, in ? Article(headline='Test article', pub_date=datetime.date(1988, 1, 4), writer=w, article='Hello.') File "/Users/gandalf/django/django_src/django/db/models/base.py", line 166, in __init__ raise TypeError, "'%s' is an invalid keyword argument for this function" % kwargs.keys()[0] TypeError: 'writer' is an invalid keyword argument for this function }}} I have attached more comprehensive test derived from mo… PhiR Jure Cuhalev <gandalf@owca.info> form_for_model 0 1 0 0 0 0
3973 2007-04-09 10:22:32 2007-09-14 20:05:39 2019-06-24 00:57:27.444783 Unreviewed closed contrib.admin     newforms-admin duplicate AttributeError for some models in the admin (newforms-admin branche) Here is the exception : {{{ AttributeError at /admin/blog/article/ 'NoneType' object has no attribute 'manager' Request Method: GET Request URL: Exception Type: AttributeError Exception Value: 'NoneType' object has no attribute 'manager' Exception Location: /usr/lib/python2.4/site-packages/django/contrib/admin/filterspecs.py in __init__, line 161 }}} I have located the error : it comes when I add some fields to {{{ list_filter = [] }}} (in the admin.ModelAdmin class)[[BR]] Some (DateTime, ForeignKey, Boolean) are okay, but if I add a CharField, a SlugField or even a TextField to the list_filter, I get the exception. And here is the Traceback : {{{ Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response 77. response = callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.4/site-packages/django/contrib/admin/sites.py" in root 123. return self.model_page(request, *url.split('/', 2)) File "/usr/lib/python2.4/site-packages/django/contrib/admin/sites.py" in model_page 140. return admin_obj(request, rest_of_url) File "/usr/lib/python2.4/site-packages/django/contrib/admin/options.py" in __call__ 136. return self.changelist_view(request) File "/usr/lib/python2.4/site-packages/django/contrib/admin/options.py" in changelist_view 486. self.date_hierarchy, self.search_fields, self.list_select_related, self.list_per_page, self) File "/usr/lib/python2.4/site-packages/django/contrib/admin/views/main.py" in __init__ 263. self.filter_specs, self.has_filters = self.get_filters(request) File "/usr/lib/python2.4/site-packages/django/contrib/admin/views/main.py" in get_filters 271. spec = FilterSpec.create(f, request, self.params, self.model) File "/usr/lib/python2.4/site-packages/django/contrib/admin/filterspecs.py" in create 25. return factory(f, request, params, model) File "/usr/lib/python2.4/site-packages/django/contrib/admin/filterspecs.py" in… nobody Baptiste <baptiste.goupil@gmail.com> attributeerror list_filter 0 1 0 0 0 0
3988 2007-04-10 11:43:08 2007-09-14 19:02:05 2019-06-24 00:57:36.907298 Ready for checkin closed contrib.localflavor     master fixed Add Canadian (.ca) localflavor Patch to add a module to django.contrib.localflavor for Canada: CAPostalCodeField, CASocialInsuranceNumberField, CAProvinceField ttarabula pi localflavor, ca 0 1 0 1 0 0
4020 2007-04-12 11:13:52 2007-09-14 21:01:03 2019-06-24 00:57:56.957648 Design decision needed closed Forms     master wontfix USPhoneField, USZipCodeField and USSocialSecurityNumberField should implement HTML maxlength For a CharField with max_length=30 it is not necessary to set attrs={'maxlength': '30'} in that form's widget (or set a widget at all in many cases). However, the fields USPhoneField, USZipCodeField and USSocialSecurityNumberField do not set maxlength="#" in the HTML they produce. In fact, USZipCodeField explicitly sets max_length=None. Maybe there is a good reason for this, but it seems like these fields could automatically add maxlength="#" to their output considering they validate for a specific length and format. [[BR]] {{{ phone = forms.USPhoneField(widget=forms.TextInput(attrs={'maxlength': '12'})) # a bit verbose phone = forms.USPhoneField() # should be equivalent to the previous line }}} [[BR]] I wish I had a patch for this, but I wouldn't know where to begin. nobody joe4444 usphonefield uszipcodefield ussocialsecuritynumberfield 0 0 0 0 0 0
4061 2007-04-17 02:39:30 2007-09-14 18:59:20 2019-06-24 00:58:22.776898 Ready for checkin closed contrib.databrowse     master fixed Document how to limit access to contrib.databrowse For people that want to limit access to the databrowse contrib, it might make sense to point to the wrapper function at: [http://www.djangoproject.com/documentation/authentication/#limiting-access-to-generic-views Limiting access to generic views] The wrapper could as well contain the register functions. For example: {{{ # Databrowse wrapper from django.contrib import databrowse from django.contrib.auth.decorators import login_required databrowse.site.register(SomeModel) databrowse.site.register(SomeOtherModel) @login_required def root(*args, **kwargs): return databrowse.site.root(*args, **kwargs) }}} Regards, bin nobody bin databrowse 0 1 0 0 0 0
4071 2007-04-18 01:44:52 2007-09-14 21:42:26 2019-06-24 00:58:29.129642 Ready for checkin closed Core (Cache system)     master fixed cache_page decorator sets wrong Cache-Control header If trying to set cache_page with CUSTOM_SECONDS, the CACHE_MIDDLEWARE_SECONDS Cache-Control header will look like:(notice the underscore) Cache-Control: max_age=CUSTOM_SECONDS, max-age=CACHE_MIDDLEWARE_SECONDS The first problem is that patch_cache_control changes [http://code.djangoproject.com/browser/django/trunk/django/utils/cache.py#L51 existing values] to underscores, but never changes them back, and this is what the patch addresses. The second problem is that even with this fixed, the max-age will still be set (appended to the existing value) to the default CACHE_MIDDLEWARE_SECONDS, probably later on by the cache middleware. permon Ionut Ciocirlan (xlotlu) <upstaked@gmail.com> sprintsept14 0 1 0 0 0 0
4090 2007-04-19 16:45:38 2007-09-14 04:28:28 2019-06-24 00:58:41.104501 Design decision needed closed Forms     master wontfix Allow django.newforms.extras be included at django.newforms I use the following code to get access to newforms code. {{{ import django.newforms as forms class MyForm(forms.Form) mydate = forms.DateField() }}} All works well, but following the same convention and wanting to use the django.newforms.extras.SelectDateWidget will result in extras not being found. {{{ import django.newforms as forms class MyForm(forms.Form) mydate = forms.DateField(widget=forms.extras.SelectDateWidget()) }}} I have attached the one liner needed in django/newforms/__init__.py to allow for this. I don't see it as causing any problems. nobody brosner <brosner@gmail.com>   0 1 0 0 0 0
4091 2007-04-19 16:57:30 2007-09-14 13:02:43 2019-06-24 00:58:41.744356 Accepted closed Forms     0.96 worksforme Not able to get choices widget to auto selected="selected" on model_for_instance It may have to do how I have my models defined (such as the __str__() function), but if I use form_for_instance on an instance with a model that has foreign keys, it will not put selected="selected" on the appropriate choices. Here are my models: {{{ class Students(models.Model): ssn = models.CharField(unique=True, maxlength=11) name = models.CharField(blank=True, maxlength=50) address = models.CharField(blank=True, maxlength=50) dob = models.DateField(null=True, blank=True) email = models.CharField(blank=True, maxlength=50) level = models.CharField(blank=True, maxlength=5) def __str__(self): return self.ssn class Courses(models.Model): cid = models.CharField(unique=True, maxlength=7) level = models.CharField(blank=True, maxlength=5) description = models.TextField(blank=True, maxlength=100) def __str__(self): return self.cid class Semesters(models.Model): sname = models.CharField(unique=True, maxlength=20) def __str__(self): return self.sname class Takes(models.Model): student = models.ForeignKey(Students, to_field='ssn', db_index=True, db_column='ssn') course = models.ForeignKey(Courses, to_field='cid', db_index=True, db_column='cid') semester = models.ForeignKey(Semesters, to_field='sname', db_index=True, db_column='sname') grade = models.CharField(blank=True, maxlength=2) def __str__(self): return "%s - %s" % (self.course.cid, self.semester.sname) }}} Now I want to do a form_for_instance on a Takes instance and I expect the appropriate student, course, and semester to have selected="selected" in the html. So now I do this: {{{ instance = Takes.objects.get(id=1) formClass = forms.form_for_instance(instance) form = formClass(auto_id='form_%s') print form }}} And I get no selected="selected". Now I've studied the documentation thoroughly, and they said this happens when they are not "bound". However, I thought form_for_instance makes it boun… nobody no@binds.net foreignkey selected choices 0 0 0 0 0 0
4113 2007-04-22 00:19:16 2007-09-14 17:44:54 2019-06-24 00:58:55.908603 Design decision needed closed Core (Other)     master duplicate dynamic destinations for FileField.upload_to From my experience, the current setup for the FileField and ImageField attribute "upload_to" is too inflexible. While save_FIELD_file is very quick and easy, telling the core where to put that file is not. I think giving another class contribution could make things much more flexible. I believe usage akin to this would work sufficiently: {{{ #!python class TestModel(Model): file = FileField() some_number = 145 t = TestModel() t.set_file_upload_to("desired/path/%s/" % some_number) }}} Giving the programmer the ability to change the destination folder on the fly would allow for more dynamic destinations. You'd be able to use IDs from other objects and use them here. nobody August Bigelow <wip@rpgmaker.net>     0 0 0 0  
4184 2007-04-29 18:23:45 2007-09-14 05:22:03 2019-06-24 00:59:40.451471 Design decision needed closed Contrib apps     0.96 wontfix The flatpages addon ought to allow users to set the mimetype on a page by page basis It comes out that occasionally I'd like to be able to control the mimetype on a specific flat page. Easy enough to add. nobody fgrim@butterflyresearch.com   0 0 0 0 0 0
4245 2007-05-08 19:51:43 2007-09-14 21:48:50 2019-06-24 01:00:19.414799 Ready for checkin closed Documentation       fixed add documentation solving "permission denied" with start-project on OSX I followed these instructions to the letter, but I get "Permission Denied" when I try to run "django-admin.py startproject". Maybe it would help to add a brief section on fixing OS X permissions if the installer doesn't set them properly. nobody jacob@gridface.com install project create startproject sprintsept14   1 0 0 0  
4360 2007-05-22 17:54:57 2007-09-14 01:21:34 2019-06-24 01:01:32.791316 Ready for checkin closed Documentation     master fixed Docs incorrectly say that response.content would contain a 302 URL http://www.djangoproject.com/documentation/0.96/testing/#testing-responses In the table under property 'content', it states that response.content will contain the URL when a 302 response is received. However, that's not the case. The URL is returned in response['Location']. nobody simon-django@uc.org   0 1 0 0 0 0
4407 2007-05-28 15:18:51 2007-09-14 21:06:54 2019-06-24 01:02:03.127404 Unreviewed closed Documentation     master worksforme Sitemaps documentation should mention dispatchers In the sitemap documentation there is a suggestion that a good place to call ping_google() is in a models save method. This should be changed to mention dispatchers, as it is far more "correct" to connect to the post_save signal to ping google, instead of doing so in save_methods. Example: {{{ from django.db.models import signals from django.dispatch import dispatcher def ping(sender, args, kwargs): try: ping_google() except Exception: pass dispatcher.connect(ping, sender=Entry, signal=signals.post_save) }}} nobody orestis@orestis.gr   0 0 0 0 0 0
4448 2007-06-01 06:13:59 2007-09-14 21:04:45 2019-06-24 01:02:29.323573 Design decision needed closed contrib.admin     master fixed OpenCalendar should get its current value from the date field it edits OpenCalendar should get its current value from the date field it edits, now it always is opened to current date. anonymous anonymous sprintsept14 Javascript date calendar 0 1 0 0 0 0
4480 2007-06-05 21:46:01 2007-09-14 18:05:31 2019-06-24 01:02:49.984825 Unreviewed closed Forms     master duplicate booleanfield newforms marked as editable=false must be set to true by the end user May not be a problem, as you can specify editable=false, but class ResponseToEvaluationUserWhoCreatedComment(forms.Form): mark_as_cleared = forms.BooleanField() seems to (for me), with newforms, require the user to check the checkbox. We could rename it "must be checked" :) nobody rogerdpack newforms, booleanfield 0 0 0 0 0 0
4514 2007-06-08 22:59:38 2007-09-14 21:30:16 2019-06-24 01:03:12.220655 Unreviewed closed Uncategorized     master wontfix 0.97-pre raises error with DateTime when the field is set to UNIQUE Django is validating each field is Unique in the database. As a DateTime field has Date and Time, it will send to the DB the field TIME and the Database will answer that TIME (For instance: 18:00:00) is not a valid DateTime. Very messy error. nobody netburn@gmail.com   0 0 0 0 0 0
4535 2007-06-11 16:48:29 2007-09-14 14:56:59 2019-06-24 01:03:25.528552 Accepted closed Internationalization     master worksforme I18n in templates - multiline messages Three issues regarding multiline messages in templates to be translated: 1. Messages spanning multiple lines don't seem to be accepted, e.g. the following gives an error (even using unix \n line ends): {% blocktrans %} Thank you very much for your payment. Your transaction has been completed. {% endblocktrans %} 2. It isn't clear in the documents that this will cause a problem, or how such cases should be treated. 3. In some cases it's possible for a template to cause make-messages.py to "freeze" (never return to the command prompt, no error messages). Attached is a template file which causes this behavior. After changing all the {% blocktrans %} to {% trans } the problem went away. nobody rohan@barnettweb.net trans blocktrans i18n 0 0 0 0 0 0
4536 2007-06-11 17:08:34 2007-09-14 06:13:15 2019-06-24 01:03:26.175093 Unreviewed closed *.djangoproject.com     master wontfix trac error http://trac.edgewall.org/ticket/5484 is an example of Django's Trac reporting a traceback. according to eblot@trac "please report it to their admin because they will need to provide more information to help in resolving this." http://trac.edgewall.org/ticket/5096 is the ticket that 5484 is marked a duplicate of. nobody Carl Karsten <carl@personnelware.com>   0 0 0 0 0 0
4542 2007-06-12 04:54:48 2007-09-14 19:28:27 2019-06-24 01:03:29.889949 Ready for checkin closed contrib.localflavor     master fixed generic localflavor date field I've added a patch to add an {{{AUDateField}}} and {{{AUDateTimeField}}} to the Australian localflavor contrib. They're just extensions of regular {{{DateField}}} and {{{DateTimeField}}}'s that use Australian "dd/mm/yy" (etc) date formats by default. Another possibility would be to just define {{{AU_DATE_INPUT_FORMATS}}} and {{{AU_DATETIME_INPUT_FORMATS}}} tuples and then pass them in to regular {{{DateField}}}'s as the input_format argument. nobody nick.lane.au@gmail.com   0 1 0 0 0 0
4544 2007-06-12 09:29:38 2007-09-14 08:29:52 2019-06-24 01:03:31.173129 Ready for checkin closed Documentation     master fixed list_filter can accept "choices" Page http://www.djangoproject.com/documentation/model-api/#list-filter says list_filter accepts BooleanField, DateField, DateTimeField or ForeignKey. Looks like IntegerField(choices=Foo)also works (at least at my site with 0.96) nobody marcuzero@gmail.com list_filter 0 1 0 0 0 0
4589 2007-06-16 19:05:37 2007-09-14 18:40:44 2019-06-24 01:04:00.672831 Design decision needed closed contrib.admin     newforms-admin wontfix [newforms-admin] Add an option to `ModelAdmin`: section_name Currently, admin interface use app label to group models into sections and use app label as the section name, but i think use a admin option to specify the section name would be more flexibly (e.g. you can use non-ascii character in the option but can't do that in app label, and the models in the same app can be displayed in several sections). I named this option as `section_name` currently. If not specified, the value of `section_name` is the same as `app_label`. I've been using this feature widely, and i hope it can be accepted. nobody yi.codeplayer at gmail dot com   0 1 0 0 0 0
4616 2007-06-18 20:48:07 2007-09-14 19:19:35 2019-06-24 01:04:17.858383 Design decision needed closed Forms     master wontfix Widgets should be able to rendered separately Hello, I spent this evening in trying to make the SplitDateTimeWidget working in the template. I get a bound_field and I'd like to split visualization of date and time like this: {% load i18n %} <p class="datetime"> {% trans "Date:" %} a {{ bound_field.form.fields.datetime_start.fields.0 }}<br /> {% trans "Time:" %} b {{ bound_field.field.fields.1.widget }} </p> I can't make it works ! I tried many permutations of the components form, fields, field_name and widget and I've never reached a results. Please correct this bug asap. nobody fero <luca.ferroni@labs.it> SplitDateTimeWidget SplitDateTimeField template 0 0 0 0 0 0
4623 2007-06-19 16:36:41 2007-09-14 21:17:21 2019-06-24 01:04:22.268525 Unreviewed closed Documentation     master fixed Needs newforms description of how to "do form processing" I couldn't figure out how to do my own form processing for days... then I learned it was as simple as: form = MyForm(request.POST) if form.is_valid(): # Capture data, store to DB. mymodel.title = form.clean_data['title'] mymodel.description = form.clean_data['description'] mymodel.save() is_valid() cleans the incoming POST data, and stores the result in form.clean_data[] nobody cellmap@gmail.com newforms 0 0 0 0 0 0
4658 2007-06-22 00:00:03 2007-09-14 21:46:38 2019-06-24 01:04:44.589864 Ready for checkin closed Documentation     master fixed documentation of linebreaks filter is too vague Currently it reads: Converts newlines into <p> and <br /> tags. It should be something more like: Converts newlines to <br /> tags and wraps the resulting string in a <p> tag. '''Note''': the docstring of this filter's Python function is also vague and also should be changed. nobody Gary Wilson <gary.wilson@gmail.com> sprintsept14 0 1 1 0 0 0
4663 2007-06-22 22:12:56 2007-09-14 21:18:42 2019-06-24 01:04:47.708212 Unreviewed closed Forms     master worksforme UnicodeDecodeError with SelectDateWidget My form: {{{ #!python class EditProfileForm(forms.Form): birthday = forms.DateField(widget=SelectDateWidget(years=range(1968, 1988)), label=_('Birthday')) }}} If {{{USE_I18N = True}}} in settings, I receive !UnicodeDecodeError: {{{ Request Method: GET Exception Type: UnicodeDecodeError Exception Value: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128) Exception Location: /usr/local/lib/python2.4/site-packages/django/newforms/widgets.py in render, line 173 }}} msaelices boobsd@gmail.com SelectDateWidget 0 0 0 0 0 0
4699 2007-06-26 15:30:51 2007-09-14 21:13:14 2019-06-24 01:05:10.960032 Accepted closed contrib.admin     newforms-admin fixed list_filter = ('name',) doesn't work in newforms-admin The following simple model gives me an error message if the list_filter line is present in the class CompoundOptions. If it's not present and any of the other out-comments lines are, the admin site works as expected. {{{ # Create your models here. from django.db import models class Compound(models.Model): ''' Compounds ''' name = models.CharField(maxlength=20,unique=True,null=True) from django.contrib import admin class CompoundOptions(admin.ModelAdmin): #list_select_related = True #list_display = ('name',) list_filter = ('name',) #list_per_page = 25 admin.site.register(Compound,CompoundOptions) }}} --- I get the following error message: {{{ AttributeError at /xxx/admin/qqq/compound/ 'NoneType' object has no attribute 'manager' Request Method: GET Request URL: https://fwnc7122.wks.gorlaeus.net/zbdb/admin/qqq/compound/ Exception Type: AttributeError Exception Value: 'NoneType' object has no attribute 'manager' Exception Location: /usr/lib/python2.3/site-packages/django/contrib/admin/filterspecs.py in __init__, line 161 Python Executable: /usr/bin/python Python Version: 2.3.4 Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/django/core/handlers/base.py" in get_response 77. response = callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.3/site-packages/django/contrib/admin/sites.py" in root 123. return self.model_page(request, *url.split('/', 2)) File "/usr/lib/python2.3/site-packages/django/contrib/admin/sites.py" in model_page 140. return admin_obj(request, rest_of_url) File "/usr/lib/python2.3/site-packages/django/contrib/admin/options.py" in __call__ 210. return self.changelist_view(request) File "/usr/lib/python2.3/site-packages/django/contrib/admin/options.py" in changelist_view 589. self.date_hierarchy, self.search_fields, self.list_select_related, self.list_per_page, self) File "/usr/lib/python2.3/site-package… jkocherhans eisoab@gmail.com   0 0 0 0 0 0
4726 2007-06-29 07:17:25 2007-09-14 03:17:46 2019-06-24 01:05:28.166953 Accepted closed Documentation     master fixed insert in docu: MultiValueDictKeyError inherited from KeyError... Please insert a note that a !MultiValueDictKeyError inherited from !KeyError, so it can be catched with "except !KeyError" http://www.djangoproject.com/documentation/request_response/ nobody jedie   0 0 0 0 0 0
4727 2007-06-29 10:42:59 2007-09-14 17:11:34 2019-06-24 01:05:28.812136 Design decision needed closed contrib.admin     newforms-admin fixed [newforms-admin] allow override of forms.BaseForm as a base class for admin forms I have a model that need some custom validation across multiple fields. To achieve that it would be best to allow overriding of base form like this: {{{ from django import newforms as forms class SomeModelForm( forms.BaseForm ): def clean( self ): data = self.cleaned_data if I_not_like_something( data ): raise forms.ValidationError, _( "Something is wrong" ) return data class SomeModelOptions( admin.ModelAdmin ): base_form = SomeModelForm admin.site.register( SomeModel, SomeModelOptions ) }}} Since {{{newforms.models.form_for_instance}}} and {{{newforms.models.form_for_instance}}} already provide this functionality, its just a matter of adding the variable to {{{ModelAdmin}}}. This approach would also solve #4507 Honza_Kral Honza Král <Honza.Kral@gmail.com> newforms admin form class 0 1 0 0 0 0
4758 2007-07-04 00:56:28 2007-09-14 19:01:17 2019-06-24 01:05:48.630306 Unreviewed closed Database layer (models, ORM)     unicode worksforme Oracle transaction doesn't rollbacks when deleting objects I use Oracle with default config options. When I try to delete objects this way: Foo.objects.filter(...).delete() and then fire the transaction.rollback() the changes are saved, so i have no objects in result (which i filtered). No errors anywhere. I've tested the same VIEW with the same settings.py file on PostgreSQL and all was ok. Trunk also has this behavior. nobody audial transaction oracle delete 0 0 0 0 0 0
4759 2007-07-04 02:13:03 2007-09-14 20:08:25 2019-06-24 01:05:49.259560 Unreviewed closed contrib.admin     newforms-admin duplicate [newforms-admin] fixed a bug, admin class has no 'manager' attribute First you need Ticket #4587, so you has ``model._meta.admin`` , but admin class has no attribute named 'manager', and this patch fixed this. {{{ - self.lookup_choices = model._meta.admin.manager.distinct().order_by(f.name).values(f.name) + self.lookup_choices = model._meta.admin(model).queryset(request).distinct().order_by(f.name).values(f.name) }}} nobody yi.codeplayer at gmail dot com   0 1 0 0 0 0
4765 2007-07-04 07:42:54 2007-09-14 21:32:25 2019-06-24 01:05:53.281106 Unreviewed closed Database layer (models, ORM)     master fixed sqlite3 executemany wrapper fails with empty parameter list The following statement fails with the sqlite wrapper: {{{ cursor = connection.cursor() cursor.executemany("insert into test (name) values(%s)",[]) }}} It raises an IndexError exception when the code tries to pick up the first element in the parameter list. [[BR]] The code is in the following statements in the file django\db\backends\sqlite3\base.py : {{{ def executemany(self, query, param_list): query = self.convert_query(query, len(param_list[0])) return Database.Cursor.executemany(self, query, param_list) }}} An obvious fix is as follows: {{{ def executemany(self, query, param_list): try: query = self.convert_query(query, len(param_list[0])) return Database.Cursor.executemany(self, query, param_list) except IndexError: # No parameter list provided return None }}} nobody jdetaeye@www.frepple.com sqlite3 0 0 0 0 0 0
4769 2007-07-05 04:21:05 2007-09-14 23:37:04 2019-06-24 01:05:55.825561 Accepted closed Documentation     master fixed Unclear documentation in newforms Just above this link is some unnecessarily wordy text: http://www.djangoproject.com/documentation/newforms/#as-p "Each text label is surrounded in an HTML <label> tag, which points to the appropriate form field via its id. Its id, in turn, is generated by prepending 'id_' to the field name." This is unnecessarily wordy and confusing to at least myself and another developer I've asked. A clearer description would be: "Each text label is surrounded in an HTML <label> tag, whose 'for' attribute contains the id of the appropriate form field." nobody crankycoder@gmail.com newforms 0 1 0 0 0 0
4850 2007-07-12 00:56:02 2007-09-14 16:50:24 2019-06-24 01:06:47.782691 Design decision needed closed Core (Management commands)       duplicate Having a project named "code" breaks things {{{ [pequod:/tmp] $ django-admin.py startproject code [pequod:/tmp] $ cd code [pequod:/tmp/code] $ python manage.py runserver Traceback (most recent call last): File "manage.py", line 11, in <module> execute_manager(settings) File "/usr/lib/python2.5/site-packages/django/core/management.py", line 1672, in execute_manager execute_from_command_line(action_mapping, argv) File "/usr/lib/python2.5/site-packages/django/core/management.py", line 1563, in execute_from_command_line from django.utils import translation File "/usr/lib/python2.5/site-packages/django/utils/translation/__init__.py", line 3, in <module> if settings.USE_I18N: File "/usr/lib/python2.5/site-packages/django/conf/__init__.py", line 28, in __getattr__ self._import_settings() File "/usr/lib/python2.5/site-packages/django/conf/__init__.py", line 55, in _import_settings self._target = Settings(settings_module) File "/usr/lib/python2.5/site-packages/django/conf/__init__.py", line 83, in __init__ raise EnvironmentError, "Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e) EnvironmentError: Could not import settings 'code.settings' (Is it on sys.path? Does it have syntax errors?): No module named settings }}} nobody anr@safira.com project name 0 1 0 0 0 0
4855 2007-07-12 18:16:24 2007-09-14 19:16:35 2019-06-24 01:06:50.957915 Accepted closed Database layer (models, ORM)     master invalid regression: qs.extra(where="foo IN %s",params=tuple) fails with SQL syntax error in SVN 5677 Hi, I have just upgraded from ~svn-2007-06-26 to 5677 (on 2007-07-12) and my SELECT IN code now fails: {{{ Bug.objects.extra(where=['parent in %s'],params=[tuple([1,2,3])]) }}} It now obviously adds 'single quotes ' around '(1,2,3)', where there were none previously (correct syntax). So I consider this a regression. Of course, I could rewrite my code to say where=["parent IN %s" % tuple()], but that does not feel right. Esp, what if somebody does SQL-injection into my tuple? It seems like tuple type should be recognized (special-cased), and quotes maybe added within each element, according to the result type. But how could Django possibly guess the required type?? {{{ File "/usr/lib/python2.4/site-packages/django/db/models/query.py", line 480, in _get_data self._result_cache = list(self.iterator()) File "/usr/lib/python2.4/site-packages/django/db/models/query.py", line 188, in iterator cursor.execute("SELECT " + (self._distinct and "DISTINCT " or "") + ",".join(select) + sql, params) File "/usr/lib/python2.4/site-packages/django/db/backends/util.py", line 19, in execute return self.cursor.execute(sql, params) File "/usr/lib/python2.4/site-packages/django/db/backends/postgresql/base.py", line 53, in execute return self.cursor.execute(smart_str(sql, self.charset), self.format_params(params)) ProgrammingError: FEHLER: Fehler »Syntaxfehler« bei »'(1, 2, 3)'« at character 101 SELECT "polls_bug"."id","polls_bug"."parent_id","polls_bug"."name" FROM "polls_bug" WHERE parent in '(1, 2, 3)' }}} I'm using postgresql, as seen in the backtrace. {{{ #!python class Bug(models.Model): parent = models.ForeignKey('self',null=True,blank=True) name = models.CharField(maxlength=30) def __str__(self): return self.name class Admin: pass }}} Regards, Jörg Höhle durdinator Jörg Höhle   0 0 0 0 0 0
4868 2007-07-14 03:14:07 2007-09-14 21:58:09 2019-06-24 01:07:00.271097 Unreviewed closed Documentation     master fixed detail.html missing I am working through this tutorial, and I notice that it talks about detail.html, but never gives code for its creation, nor instructs the user to create the file. However, in the next page, the assumption is made that its created and we're modifying it. This seems unclear, and would benefit from some touchups. Also, while the article makes mention of handler404 and handler500, it never tells how to use them. While its not relevant to the tutorial since importing * from django.urls gives it free, I think explanation of usage should be provided or the section removed. nobody Eddie   0 0 0 0 0 0
4875 2007-07-14 16:31:39 2007-09-14 23:35:21 2019-06-24 01:07:04.734894 Unreviewed closed Documentation     0.96 fixed Bugs in 'Writing your first Django app, part 4' Django version 0.96 The Web-poll application won't work with the use of generic views. Also the templates need adjustment which is missing in the tutorial. nobody joachimschwarz@gmx.de first Django app 0 0 0 0 0 0
4885 2007-07-15 13:11:37 2007-09-14 18:13:07 2019-06-24 01:07:11.232081 Unreviewed closed contrib.admin     master worksforme non-ASCII UTF-8 characters in messages on admin pages are displayed incorrectly Hi, I pulled the latest code from SVN 2-3 days ago (around July 13, 2007), which has the unicode branch merged. In general it works very well with UTF-8, but here I noticed a small glitch: When following the "poll/choice" tutorial example, if I enter some non-ASCII characters (Chinese in this case) when editing a poll question on the admin page, after "save" button is pushed, the confirmation message is displayed as: The poll "???????" was changed successfully. Notice the "?" mark above? I beleive I have set all my settings correctly (mainly the MySql charset settings), since my poll question is displayed correctly at other places on the admin page. Thank you for taking a look into this. Wanrong Lin nobody anonymous   0 0 0 0 0 0
4896 2007-07-16 22:55:23 2007-09-14 21:32:25 2019-06-24 01:07:18.125753 Accepted closed Database layer (models, ORM)     master fixed Buggy implementation of executemany for oracle The following example shows the buggy implementation. The same example works fine with sqlite and postgresql. {{{ cursor = connection.cursor() cursor.execute('create table test (Field1 NUMBER(11),Field2 NUMBER(11))') cursor.executemany('insert into test values (%s, %s)', [(i,i+1) for i in range(1,100)]) }}} It returns the following error message: {{{ File "C:\packages\Python-2.5\lib\site-packages\django\db\backends\util.py", line 30, in executemany return self.cursor.executemany(sql, param_list) File "C:\packages\Python-2.5\lib\site-packages\django\db\backends\oracle\base.py", line 125, in executemany query, params = self._rewrite_args(query, params) File "C:\packages\Python-2.5\lib\site-packages\django\db\backends\oracle\base.py", line 101, in _rewrite_args query = smart_str(query, self.charset) % tuple(args) TypeError: not all arguments converted during string formatting }}} ikelly jdetaeye@www.frepple.com oracle executemany 0 1 0 0 0 0
4919 2007-07-18 15:55:01 2007-09-14 01:52:10 2019-06-24 01:07:32.845988 Ready for checkin closed Generic views     master fixed add ?page=last for generic object_list with pagination usecase: you want to link to the last page, but you don´t know how many pages there are. e.g, when you have comments paginated and you want to link to the last comment posted, you could use ?page=last {{{ except (InvalidPage, ValueError): if page == 1 and allow_empty: object_list = [] + elif page == 'last': + page = paginator._get_pages() + object_list = paginator.get_page(page - 1) else: raise Http404 }}} sorry, but submitting a patch didn´t work the last time, so I just put the code in here. the above code-snippet is for django.views.generic.list_detail.object_list from line 52. nobody patrick@vonautomatisch.at   0 1 0 0 0 0
4928 2007-07-19 22:21:15 2007-09-14 16:36:48 2019-06-24 01:07:38.722774 Accepted closed Core (Other)     master invalid unique_together bug when it's not a tuple. Validation missing if unique_together is a tuple with strings, Django will manage the content as characters. So I wrote a patch to validate that the unique_together content should be a tuple of tuples. deryck MarioGonzalez <gonzalemario @t gmail.com>   0 1 1 0 0 0
4951 2007-07-22 04:21:41 2007-09-14 07:12:47 2019-06-24 01:07:53.398861 Ready for checkin closed Contrib apps     master fixed sites.RequestSite incorrectly reports domain If you run the development server then sites.RequestSite does not include the port number in the domain. This patch seems to fix the problem. nobody Caleb   0 1 0 0 0 0
4958 2007-07-23 11:08:45 2007-09-14 19:30:03 2019-06-24 01:07:57.814673 Unreviewed closed contrib.admin     newforms-admin fixed [newforms-admin] translated field labels doesn't show in newforms admin The merge with Unicode branch might be responsible for that. It can be fixed by simple adding {{{force_unicode()}}} call to {{{django.contrib.admin.options.BoundField.label_tag}}}, see attached patch. Honza_Kral Honza Král <Honza.Kral@gmail.com> newforms admin unicode label sprintsept14 0 1 0 0 0 0
4964 2007-07-25 00:47:46 2007-09-14 07:19:38 2019-06-24 01:08:01.735826 Ready for checkin closed contrib.localflavor     master fixed Brazilian local flavor new BRStateChoiceField "A choice field that uses a list of Brazilian states as its choices." nobody Wiliam Alves de Souza localflavor 0 1 0 0 0 0
4967 2007-07-25 14:03:01 2007-09-14 16:18:51 2019-06-24 01:08:03.581560 Accepted closed Forms     master duplicate newforms: use default of model for initial of widget Here is a small patch to use the default value of a field of the model as initial for the widget. nobody Thomas Güttler <hv@tbz-pariv.de>   0 1 0 0 0 0
4970 2007-07-25 17:23:40 2007-09-14 16:21:45 2019-06-24 01:08:05.468000 Unreviewed closed Documentation     master invalid documentation - Newforms - Overriding The Default Field Types I assume the code sample: {{{ >>> def my_callback(field, **kwargs): ... if isinstance(field, models.DateField): ^^^^^^ ... return MyDateFormField(**kwargs) ... else: ... return field.formfield(**kwargs) }}} should read {{{ >>> def my_callback(field, **kwargs): ... if isinstance(field, forms.DateField): }}} nobody anonymous newforms 0 0 0 0 0 0
5067 2007-08-03 04:43:10 2007-09-14 06:43:46 2019-06-24 01:09:08.085935 Accepted closed contrib.admin     master fixed Calendar and clock popups are wrongly positioned if within a scrollable div The calendar and clock popups created through DateTimeShortcuts.js are positioned relative to cumulative offset (left and top) of all parent objects. This doesn't work if the firing up the popup is within a scrollable div. The popups get misaligned by the actual distances scrolled. This is very easily fixed by subtracting the scrolled distance from the objects' offsets whilst iterating through. See attached patch of core.js. rcoup erichs@calytrix.com DateTimeShortcuts calendar clock admin scrolling position 0 1 1 0 0 0
5069 2007-08-03 05:23:50 2007-09-14 23:03:50 2019-06-24 01:09:09.495316 Unreviewed closed Uncategorized     master wontfix newforms cannot initial SelectDateWidget 's value form with SelectDateWidget {{{ class Person(newforms.form): birthday = forms.DateField( widget=utils.widgets.SelectDateWidget()) }}} that 's ok {{{ form = Person(request.POST) }}} but cannot {{{ form = Person(initial = request.POST) }}} nobody anonymous   0 0 0 0 0 0
5121 2007-08-09 13:51:01 2007-09-14 15:10:01 2019-06-24 01:09:43.562429 Unreviewed closed Documentation     unicode wontfix bald link to old docs The link from [http://www.djangoproject.com/documentation/unicode/] to the old 0.96 docs is dead. nobody anonymous   0 0 0 0 0 0
5123 2007-08-09 15:12:22 2007-09-14 02:54:12 2019-06-24 01:09:44.821448 Ready for checkin closed Forms     master fixed ImageField.formfield does not pass arguments correctly formfield method of ImageField database field does not pass arguments correctly. It replaces instead of updating. nobody Collin Anderson <cmawebsite@gmail.com> ImageField formfield 0 1 0 0 0 0
5139 2007-08-12 11:34:52 2007-09-14 13:13:45 2019-06-24 01:09:55.219324 Unreviewed closed Database layer (models, ORM)     master wontfix Custom primary_key broken when saving When you save a model instance with a custom primary_key, you can't retrieve the primary_key without getting the instance again first. With a standard primary_key this works fine (like the documentation says) Relevant code from my models {{{ #!python class XbtFiles(models.Model): fid = models.IntegerField(primary_key=True) info_hash = models.TextField(unique=True) class Tag(models.Model): name = models.CharField(maxlength=128) }}} With standard primary_key it works fine {{{ #!python >>> t=Tag(name="foo") >>> t.save() >>> t.id 2L }}} With custom primary_key it is broken {{{ #!python >>> x=XbtFiles(info_hash="this_field_is_unique") >>> x.save() >>> x.info_hash 'this_field_is_unique' >>> x.fid >>> #huh nothing??? >>> y=XbtFiles.objects.get(info_hash="this_field_is_unique") >>> x == y False >>> y.fid 10L }}} nobody bjorn.kempen@gmail.com primary_key save 0 0 0 0 0 0
5145 2007-08-13 04:06:49 2007-09-14 19:40:14 2019-06-24 01:09:59.012454 Unreviewed closed Forms     master invalid MultiWidget / MultiValueField does not interpret initial data Below I've used SplitDateTime as an example, but it applies to other MultiWidget / MultiValueField as well, as I came across the issue using a custom MultiWidget / MultiValueField. I'm not sure in which the problem lies. Generally, the MultiValueField accepts values from the "data=" argument to the form constructor, and these appear when the MultiWidget is rendered just fine. However, when a dictionary is passed through the "initial=" argument, it does not appear. An example follows: {{{ >>> from django.newforms import * >>> class TestForm(Form): ... the_datetime_field = SplitDateTimeField(widget=SplitDateTimeWidget) ... >>> test_data = {'the_datetime_field_0':'12/24/07', 'the_datetime_field_1':'15:00'} >>> unbound_form_no_initial = TestForm() >>> unbound_form_no_initial.as_p() u'<p><label for="id_the_datetime_field_0">The datetime field:</label> <input type="text" name="the_datetime_field_0" id="id_the_datetime_field_0" /><input type="text" name="the_datetime_field_1" id="id_the_datetime_field_1" /></p>' >>> bound_form = TestForm(data=test_data) >>> bound_form.as_p() u'<p><label for="id_the_datetime_field_0">The datetime field:</label> <input type="text" name="the_datetime_field_0" value="12/24/07" id="id_the_datetime_field_0" /><input type="text" name="the_datetime_field_1" value="15:00" id="id_the_datetime_field_1" /></p>' >>> unbound_form_with_initial = TestForm(initial=test_data) >>> unbound_form_with_initial.as_p() u'<p><label for="id_the_datetime_field_0">The datetime field:</label> <input type="text" name="the_datetime_field_0" id="id_the_datetime_field_0" /><input type="text" name="the_datetime_field_1" id="id_the_datetime_field_1" /></p>' }}} As you can see, only the bound form shows the values. The first unbound form is of course not supposed to show any initial values. However, the second unbound form is passed initial values that it is supposed to show, but it does not. msaelices daofma@gmail.com newforms, MultiWidget, MultiValueField, initial 0 0 0 0 0 0
5161 2007-08-15 11:09:16 2007-09-14 22:05:59 2019-06-24 01:10:09.144176 Accepted closed Uncategorized     master fixed mysql backend repeatedly adds warnings filter See `/trunk/django/db/backends/mysql/base.py`, line 82 (r5609 at time of writing). The mysql backend's `cursor()` method calls `warnings.filterwarnings()` each time a cursor is requested (if DEBUG==True). Instead, filterwarnings() should only be called once (e.g. at module load), to avoid needlessly adding identical filters to the warnings module's internal list. nobody adurdin@gmail.com   0 1 0 0 0 0
5213 2007-08-20 18:22:08 2007-09-14 18:45:00 2019-06-24 01:10:43.743426 Design decision needed closed Uncategorized     master wontfix [enhancement] Add an invitation option in authentification user module Hi, I wonder if someone could implement the invitation option in authentification user module when user login. I'm refering to one registered user (eventually admin) has to invite another (new) user for that user could login satisfactorially in the web page. This avoid that admin user must register all users. Thanks in advance, Xan. jacob DXpublica@telefonica.net   0 0 0 0 0 0
5218 2007-08-20 23:39:30 2007-09-14 18:12:36 2019-06-24 01:10:47.208201 Accepted closed Database layer (models, ORM)     master fixed Problems when user provides field name for primary key in Oracle 10 g Hello Sorry I wasn't really clear in what I want to achieve. I really just want to call my primary key, in this case, employee_id and have it incremented automatically. But I have the following problem. from django.db import models class Employee(models.Model): employee_id = models.AutoField(max_length=10, primary_key=True) first_name = models.CharField(max_length=20) last_name = models.CharField(max_length=20) and got this output - the table and sequence were created but not the trigger. C:\DjangoTraining\PK>python manage.py validate 0 errors found. C:\DjangoTraining\PK>python manage.py sql test CREATE TABLE "TEST_EMPLOYEE" ( "EMPLOYEE_ID" NUMBER(11) NOT NULL PRIMARY KEY, "FIRST_NAME" NVARCHAR2(20) NULL, "LAST_NAME" NVARCHAR2(20) NULL ) ; CREATE SEQUENCE TEST_EMPLOYEE_SQ; CREATE OR REPLACE TRIGGER TEST_EMPLOYEE_TR BEFORE INSERT ON "TEST_EMPLOYEE" FOR EACH ROW WHEN (new.id IS NULL) BEGIN SELECT TEST_EMPLOYEE_SQ.nextval INTO :new.id FROM dual; END; / COMMIT; C:\DjangoTraining\PK>python manage.py syncdb Creating table test_employee Traceback (most recent call last): File "manage.py", line 11, in ? execute_manager(settings) File "C:\Python24\Lib\site-packages\django\core\management.py", line 1730, in execute_manager execute_from_command_line(action_mapping, argv) File "C:\Python24\Lib\site-packages\django\core\management.py", line 1621, in execute_from_command_line action_mapping[action](int(options.verbosity), options.interactive) File "C:\Python24\Lib\site-packages\django\core\management.py", line 554, in s yncdb cursor.execute(statement) File "C:\Python24\Lib\site-packages\django\db\backends\util.py", line 19, in e xecute return self.cursor.execute(sql, params) File "C:\Python24\Lib\site-packages\django\db\backends\oracle \base.py", line 1 22, in execute return Database.Cursor.execute(self, query, param… ikelly catriona.johnson@gmail.com oracle primary key AutoField 0 0 0 0 0 0
5226 2007-08-21 20:07:53 2007-09-14 18:26:10 2019-06-24 01:10:52.634560 Unreviewed closed Database layer (models, ORM)     master fixed "Invalid relational operator" against Oracle 9i backend Recent changes to support Django's regex and iregex operators in Oracle only work against Oracle Database Server 10g or later. Running the test suite against an Oracle 9i server leads to SQL Oracle won't recognize: "DatabaseError: ORA-00920: invalid relational operator". We previously claimed to support Oracle versions 9i and greater (11g is current) in the boulder-oracle-sprint branch. Oracle 9i is due to drop off their support matrix soon, if it hasn't already, but since things move deliberately in the enterprise world, 9i is still very common. Either we need to implement a fallback strategy when connecting to a 9i server, or drop 9i support officially. mboersma mboersma oracle regex iregex 0 0 0 0 0 0
5251 2007-08-24 19:22:27 2007-09-14 19:28:16 2019-06-24 01:11:08.729589 Accepted closed contrib.admin     newforms-admin fixed [newforms-admin] "Show in Web" links not working The "Show in Web" Links on the change pages of the django admin are not working as admin/r/10/1 (just an example) returns "app u'r', model 10 (or something like it ;)) not found"... This patch moves the checking to contrib/admin/sites to prevent this special url from getting displayed as model_page which obviously fails... apollo13 Florian Apolloner newforms-admin reverse sprintsept14 0 1 0 0 0 0
5280 2007-08-28 11:56:22 2007-09-14 08:49:03 2019-06-24 01:11:34.555217 Accepted closed Documentation     master fixed modpython doc: typo in python path ? In modpython doc, you have (line 81 of modpython.txt): {{{ PythonPath "['/var/production/django-apps/', '/var/www'] + sys.path" }}} Shouldn't it be {{{ PythonPath "['/usr/local/django-apps/', '/var/www'] + sys.path" }}} to fit what is said in previous paragraph ? jacob nsteinmetz@gmail.com   0 0 0 0 0 0
5286 2007-08-28 22:07:23 2007-09-14 18:29:35 2019-06-24 01:11:40.705624 Accepted closed contrib.admin     master fixed Non-HTML output in python manage.py adminindex <appname> This is on Django trunk rev 6023, running on python 2.4.3 compiled from source on Mac OS X 10.4.10, running with PostgreSQL (again from source) 8.1.4. I created a simple project 'qwacks' with a single app 'diary'. I created a very simple model (attached). Settings and configuration also attached. I then added a custom directory to TEMPLATE_DIRS, preparing to customise teh Django index page as described in http://www.djangoproject.com/documentation/tutorial02/. Upon running python manage.py adminindex diary, I get the following output: {{{ {% if perms.diary %} <div class="module"><h2>Diary</h2><table> {% if perms.diary.add_event or perms.diary.change_event %} <tr> <th>{% if perms.diary.change_event %}<a href="diary/event/">{% endif %}<django.utils.functional.__proxy__ object at 0x1381550>{% if perms.diary.change_event %}</a>{% endif %}</th> <td class="x50">{% if perms.diary.add_event %}<a href="diary/event/add/" class="addlink">{% endif %}Add{% if perms.diary.add_event %}</a>{% endif %}</td> <td class="x75">{% if perms.diary.change_event %}<a href="diary/event/" class="changelink">{% endif %}Change{% if perms.diary.change_event %}</a>{% endif %}</td> </tr> {% endif %} </table></div> {% endif %} }}} Note what appears to be a python object repr in the th tag. Please let me know if you need any more information. piranha dan.fairs@gmail.com admin adminindex manage.py repr str proxy 0 1 0 0 0 0
5299 2007-08-29 23:33:41 2007-09-14 08:49:43 2019-06-24 01:11:50.936606 Accepted closed Documentation     master fixed mod_python documentation issues Posting for Graham Dumpleton, since his attempt was rejected as spam: In #5280 the issue of some mistakes in latest changes to mod_python documentation have been made. In reviewing associated #4296 and the changes, I note that the issues I brought up in mod_python documentation and referenced in the ticket were not addressed. Ie., as described in: http://groups.google.com/group/django-users/browse_frm/thread/24deb095a2b2e450/1c982558d464017a The problem is that people who use development server (and later move to mod_python), can find their application do not work as they have inadvertently used the fact that it is possible to list module paths in urls.py or perform imports in subdirectories that don't import via the top level site name. Instead they do them relative to the site name instead. For this to work when moved to mod_python they must also add the actual site directory to PythonPath in addition to the parent directory. I still don't see this as being documented DavidReynolds jdunck   0 0 0 0 1 0
5308 2007-08-30 19:28:34 2007-09-14 21:53:17 2019-06-24 01:11:57.430424 Ready for checkin closed Contrib apps     master fixed [Patch] Redirect from pages that need login and have Unicode URL causes error How to repeat: have a page that has encoded Unicode in URL, like http://www.example.com/gie%C3%9Fen/xyz/. Make that page available to authenticated users only. Try browsing to it when not logged in. I get an error. On other pages, where there's a 'normal' URL, not. {{{ Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py", line 77, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/usr/local/lib/python2.4/site-packages/django/contrib/auth/decorators.py", line 18, in _checklogin return HttpResponseRedirect('%s?%s=%s' % (login_url, REDIRECT_FIELD_NAME, quote(request.get_full_path()))) File "/usr/local/lib/python2.4/urllib.py", line 1117, in quote res = map(safe_map.__getitem__, s) KeyError: u'\xdf' }}} nobody webjunkie unicode url login auth decorator checklogin redirect quote sprintsept14 0 1 0 0 0 0
5340 2007-09-04 20:24:50 2007-09-14 10:11:02 2019-06-24 01:12:18.114839 Accepted closed Documentation     master fixed request for new link in docs I think that http://www.djangoproject.com/documentation/templates/ should link to http://www.djangoproject.com/documentation/templates_python/ at the bottom--maybe a link like "click here to program your own" or what not. Thanks! Django rox! justinlilly@gmail.com rogerpack2005@gmail.com   0 1 0 0 0 0
5341 2007-09-04 21:42:56 2007-09-14 04:55:09 2019-06-24 01:12:18.724535 Unreviewed closed Documentation     master fixed Clarify DB API docs about params in extra() I've got a simple patch to docs/db-api.txt clarifying use of ``params`` in extra(). nobody paulsmith@pobox.com db api extra params 0 1 0 0 0 0
5342 2007-09-05 01:32:49 2007-09-14 19:22:44 2019-06-24 01:12:19.356724 Ready for checkin closed Core (Other)     master fixed EmailField dbfield should accept max_length parameter `EmailField` is currently hard-coded to a max length of 75. Discussion: http://groups.google.com/group/django-developers/browse_frm/thread/662aa47cb546a20/ donspaulding gwilson sprintsept14 0 1 0 0 0 0
5351 2007-09-06 16:07:23 2007-09-14 13:54:50 2019-06-24 01:12:25.208745 Unreviewed closed GIS     other branch fixed [gis] orderfield2column referenced but not imported in query.py In file django/branches/gis/django/contrib/gis/db/models/query.py from [http://code.djangoproject.com/changeset/6026 Rev 6026] orderfield2column is used but not imported. {{{ Line 127: order_by.append('%s%s %s' % (table_prefix, qn(orderfield2column(col_name, opts)), order)) }}} Solution: {{{ -Line 4: from django.db.models.query import Q, QuerySet, handle_legacy_orderlist, quote_only_if_word +Line 4: from django.db.models.query import Q, QuerySet, handle_legacy_orderlist, quote_only_if_word, orderfield2column }}} nobody anonymous gis, query, orderfield2column, db 0 0 0 0 0 0
5359 2007-09-07 20:10:34 2007-09-14 06:17:12 2019-06-24 01:12:30.213941 Unreviewed closed Documentation     master invalid trailing slash missing in documentation http://www.djangoproject.com/documentation/model-api/#filefield For example, say your MEDIA_ROOT is set to ''''/home/media'''', and upload_to is set to 'photos/%Y/%m/%d'. The '%Y/%m/%d' part of upload_to is strftime formatting; '%Y' is the four-digit year, '%m' is the two-digit month and '%d' is the two-digit day. If you upload a file on Jan. 15, 2007, it will be saved in the directory /home/media/photos/2007/01/15. nobody walshmj   0 0 0 0 1 0
5367 2007-09-08 21:33:15 2007-09-14 05:53:46 2019-06-24 01:12:35.506263 Unreviewed closed Database layer (models, ORM)     master worksforme sqlite3+ManyToManyField: unable to link to 1000 (or more) objects. With `DATABASE_ENGINE = 'sqlite3'` and the following `foo/models.py`: {{{ #!python from django.db import models class Foo(models.Model): pass class Bar(models.Model): foos = models.ManyToManyField(Foo) }}} I try: {{{ #!python >>> from foo import models >>> models.Foo.objects.all().count() 1733 >>> bar = models.Bar(1) >>> bar.foos = models.Foo.objects.all()[:1000] Traceback (most recent call last): File "<console>", line 1, in ? File "/var/lib/python-support/python2.4/django/db/models/fields/related.py", line 460, in __set__ manager.add(*value) File "/var/lib/python-support/python2.4/django/db/models/fields/related.py", line 287, in add self._add_items(self.source_col_name, self.target_col_name, *objs) File "/var/lib/python-support/python2.4/django/db/models/fields/related.py", line 338, in _add_items [self._pk_val] + list(new_ids)) File "/var/lib/python-support/python2.4/django/db/backends/util.py", line 19, in execute return self.cursor.execute(sql, params) File "/var/lib/python-support/python2.4/django/db/backends/sqlite3/base.py", line 129, in execute return Database.Cursor.execute(self, query, params) OperationalError: too many SQL variables }}} nobody Jakub Wilk <django@icomputing.pl>   0 0 0 0 0 0
5370 2007-09-09 09:40:48 2007-09-14 02:01:11 2019-06-24 01:12:37.482142 Ready for checkin closed Internationalization     master fixed newforms.ValidationError cannot accept a message created by ugettext_lazy Currently, if `ugettext_lazy` is used on the error message passed to the newforms `ValidationError` it will raise `AssertionError` because the message is expected to be either a list or a `basestring`. The assertion should instead allow for an instance of `django.utils.functional.Promise` (as the oldforms `ValidationError` already does). nobody ubernostrum   0 1 0 0 0 0
5394 2007-09-10 18:06:55 2007-09-14 19:25:38 2019-06-24 01:12:53.131784 Accepted closed Contrib apps     master fixed REDIRECT_FIELD_NAME should be configurable I think that it should be possible to set REDIRECT_FIELD_NAME in settings.py. For example it can be useful if I want to have url in another language than English. It is changed by the attached patch. DavidReynolds Petr Marhoun <petr.marhoun@gmail.com> authorization, redirection, sprintsept14 0 1 0 0 0 0
5396 2007-09-10 21:58:57 2007-09-14 06:15:06 2019-06-24 01:12:54.548480 Design decision needed closed Template system     master wontfix Filter "urlizetrunc" does not truncize email adresses Filter shortens urls, but not email addresses. nobody Danilo   0 1 0 1 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