Re: Fixtures without a pk

2007-11-23 Thread Russell Keith-Magee
On 11/23/07, Patryk Zawadzki <[EMAIL PROTECTED]> wrote: > > 2007/11/23, Rudolph <[EMAIL PROTECTED]>: > > > > Structured markup can only represent tree like organised objects > > (without tricks). Maybe we can keep the primary keys inside the > > fixtures, but add an optional attribute that indicat

Re: Proposal of adding default templates argument to admin view functions.

2007-11-23 Thread Atsushi Suga
Hi Chris > First, if you are going to post code, you should be creating a ticket > in our bug management system [1] rather than just putting them in an > email here. O.K > Second, you can already override admin templates, as explained in the > second step of the templates [2] and the exact deta

Lets talk about a dynamic limit_choices_to again :)

2007-11-23 Thread Dmitri Fedortchenko
I found this ticket: http://code.djangoproject.com/ticket/2445 It's not seen much activity for a while, but in september jkocherhans posted some news which I found interesting. So since I needed this functionality, I wrote a patch for it. The patch is still shaky on edit_inline objects, but it w

Re: Best way to update only certain fields on a model instance?

2007-11-23 Thread Collin Grady
Johann C. Rocholl said the following: > I have come up with this kludge: > http://www.djangosnippets.org/snippets/479/ > Should I turn this into a patch and submit it? No, this will be covered by 4102. > What's the status of ticket 4102? > (Allow UPDATE of only specific fields in model.save())

Re: Proposal of adding default templates argument to admin view functions.

2007-11-23 Thread SmileyChris
Hi Atsushi, First, if you are going to post code, you should be creating a ticket in our bug management system [1] rather than just putting them in an email here. Second, you can already override admin templates, as explained in the second step of the templates [2] and the exact details are expl

Proposal of adding default templates argument to admin view functions.

2007-11-23 Thread Atsushi Suga
Today if we try to override admin page (e.g index and change_list), we have to cut and paste admin template or view functions from original django admin code. But if admin view functions has templates argument, we only have to call orignal admin function and set our own admin template to override

Re: Sul do Brasil

2007-11-23 Thread Wiliam Alves de Souza
On Nov 22, 2007 2:42 PM, skywalkerbrz <[EMAIL PROTECTED]> wrote: > > Estou trabalhando num projeto web para uma empresa de desenvolvimento > de softwares de gestao. > Gostaria que programadores do sul do Brasil entrassem em contato pois > precisamos de uma alternativa ágil e eficiente de desenvolv

Re: Sul do Brasil

2007-11-23 Thread Marinho Brandao
Skywalkerbrz, nós temos um grupo no Brasil sobre o Django, dê uma olhada e envie sua mensagem por lá que te ajudaremos: http://groups.google.com/group/django-brasil 2007/11/22, skywalkerbrz <[EMAIL PROTECTED]>: > > Estou trabalhando num projeto web para uma empresa de desenvolvimento > de softw

Re: Sul do Brasil

2007-11-23 Thread Benjamin Slavin
On 11/22/07, skywalkerbrz <[EMAIL PROTECTED]> wrote: > > Estou trabalhando num projeto web para uma empresa de desenvolvimento > de softwares de gestao. > Gostaria que programadores do sul do Brasil entrassem em contato pois > precisamos de uma alternativa ágil e eficiente de desenvolvimento de >

Re: Fixtures without a pk

2007-11-23 Thread Patryk Zawadzki
2007/11/23, Rudolph <[EMAIL PROTECTED]>: > > Structured markup can only represent tree like organised objects > (without tricks). Maybe we can keep the primary keys inside the > fixtures, but add an optional attribute that indicates that the > primary key for this object is only used to link the o

Re: Fixtures without a pk

2007-11-23 Thread Rudolph
Structured markup can only represent tree like organised objects (without tricks). Maybe we can keep the primary keys inside the fixtures, but add an optional attribute that indicates that the primary key for this object is only used to link the objects together when importing the data? --~--~

Re: ticket #5986, reviews welcome

2007-11-23 Thread Patryk Zawadzki
On 20 Lis, 16:15, "Michal Salaban" <[EMAIL PROTECTED]> wrote: > Hi all, > > We have created a patch which allows customizing the order of Fields in > Forms.http://code.djangoproject.com/ticket/5986 > > The initial idea (with weights) has been abandoned in favour of Meta > data to provide flexibil

Re: Fixtures without a pk

2007-11-23 Thread Patryk Zawadzki
2007/11/23, Russell Keith-Magee <[EMAIL PROTECTED]>: > > On 11/23/07, Rudolph <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > My suggestion: > > It would be nice to use the django-admin.py with an extra option to > > dump certain data without primary keys. If you like the idea, I'll > > file a tick

Re: question about TestCase._pre_setup database flush condition

2007-11-23 Thread Atsushi Suga
Thanks for teaching me and your work. Yours Atsushi Suga --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscr

Re: Fixtures without a pk

2007-11-23 Thread Russell Keith-Magee
On 11/23/07, Rudolph <[EMAIL PROTECTED]> wrote: > > Hi, > > My suggestion: > It would be nice to use the django-admin.py with an extra option to > dump certain data without primary keys. If you like the idea, I'll > file a ticket (and maybe implement it at the upcoming Django sprint). You're not

Fixtures without a pk

2007-11-23 Thread Rudolph
Hi, Sometimes fixtures without a pk come in handy because the object in the fixture is important to the application, but it doesn't matter which pk is has (and other objects might have been inserted by other applications, so it's unknown which pk is available). I got the JSON format working with

Re: question about TestCase._pre_setup database flush condition

2007-11-23 Thread Russell Keith-Magee
On 11/23/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > On 11/23/07, Atsushi Suga <[EMAIL PROTECTED]> wrote: > > > The correct fix here is to clarify the method comment. Committed in [6710]. Yours, Russ Magee %-) --~--~-~--~~~---~--~~ You received this mess

Re: question about TestCase._pre_setup database flush condition

2007-11-23 Thread Russell Keith-Magee
On 11/23/07, Atsushi Suga <[EMAIL PROTECTED]> wrote: > > I have a question abut database flush condition. > in django/test/testcases.py TestCase._pre_setup() > > forrow is _pre_setup() comment > """ > ... > If the Test Case class has a 'fixtures' member, clearing the > database and installing the