Re: Add optional FOR UPDATE clause to QuerySets

2008-05-27 Thread Jean-François
On 27 mai, 01:17, Sebastian Noack <[EMAIL PROTECTED]> wrote: [snip] > Even if it is done by many parallel connections, because of > transactions are managed by the DBMS too and ensure atomicity, > consistency, isolation and durability of each transaction > [snip] The problem is that DBMS don'

Re: range in templates?

2008-05-27 Thread Mark
Not only a better place to ask...a better place to look for the answer. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googleg

Re: range in templates?

2008-05-27 Thread Steve Holden
Mark wrote: > I'm new to django so I apologize if after reading through the docs and > list I missed something obvious. I would like to do something like > this in a template: > > {% for index in range(10) %} > > but I can't seem to find anything that will allow this. I've become > used to the i

range in templates?

2008-05-27 Thread Mark
I'm new to django so I apologize if after reading through the docs and list I missed something obvious. I would like to do something like this in a template: {% for index in range(10) %} but I can't seem to find anything that will allow this. I've become used to the idea that when something that

Re: DateField, Database Parameter Types and Jython Backends

2008-05-27 Thread Jacob Kaplan-Moss
On Mon, May 26, 2008 at 11:26 PM, Leo Soto M. <[EMAIL PROTECTED]> wrote: > dates, times, and datetimes are converted to string _before_ being > passed to the backend. Oops :) > b) Pass the backend (or its DatabaseOperations) to > Field.get_db_prep_save. We could then add a > DatabaseOperation.to

Re: Object list with values to ForeignKey and ManyToMany

2008-05-27 Thread Thomas K. Adamcik
On Tue, May 27, 2008 at 07:27:27PM +0200, Tomás Garzón Hervás wrote: > Servicio.objects.all().values('trabajadores') > I get the exception: > : Invalid field name: > 'trabajadores' If I remeber correctly you should be using the related_name here. > Trabajador.objects.all().values('user'

Re: newforms-admin FormSet API

2008-05-27 Thread Gary Davis
I'm a Django newbie, so please pardon me if I am asking stupid questions or raising issues long-solved, but ... I have some requirements similar to these that you are discussing for 'formsets', and maybe my experience can help a little.. I went ahead and built myself a 'formset' factory, of sort

Re: Object list with values to ForeignKey and ManyToMany

2008-05-27 Thread Tomás Garzón Hervás
OK, but i think that is a bug of Django API model, because it not get me correct response. Collin Grady escribió: > Usage questions such as this should go to the django-users mailing list. The > django-developers list is for the development of django itself, not just for > developers who use dj

Re: Object list with values to ForeignKey and ManyToMany

2008-05-27 Thread Collin Grady
Usage questions such as this should go to the django-users mailing list. The django-developers list is for the development of django itself, not just for developers who use django. -- Collin Grady Some people live life in the fast lane. You're in oncoming traffic. --~--~-~--~~--

Object list with values to ForeignKey and ManyToMany

2008-05-27 Thread Tomás Garzón Hervás
Hi, I need help, thanks . My first problem with values: class Servicio(models.Model): empresa = models.ForeignKey(Empresa,blank=True,null=True,related_name='servicios_internos') [EMAIL PROTECTED] Trabajadores trabajadores = models.ManyToManyField(Trabajador, blank=True,null

Re: Aggregates and derived tables

2008-05-27 Thread Nicolas Lara
Hi Karen, On Mon, May 26, 2008 at 7:24 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > (The other aggregate thread has gotten a bit long and hard to find things in > so I've started a new thread for this question.) > no prob, =) > Moving on to another of my crossword DB stats pages, what I displa