Re: FK Autocomplete Widget [GSoC '09 Admin UI Improvements]

2009-05-26 Thread Margie
Yes, I like the idea of a callback that can be overridden. Alex - are you saying this is an ajax solution or a solution that takes place at formset creation time? Also, in the rendered output for a field, think it would be nice for non-editable fields to have ids associated with them the same wa

Re: FK Autocomplete Widget [GSoC '09 Admin UI Improvements]

2009-05-26 Thread Margie
That is definitely a very interesting and useful example, appreciate you posting it. I just took a quick look at the source for class ModelAdmin and it seems to me that the get_changelist_formset() and get_changelist_form() methods do not have the obj argument, so I don't see how to do the same t

Re: Django 1.0.2 Test Suite - Modeltests-m2m_through

2009-05-26 Thread Russell Keith-Magee
On Wed, May 27, 2009 at 2:21 AM, Tarun Pasrija wrote: > > Hi > > In my effort to contribute rectification of Django test suite, I ran > it using the following command to select the model as m2m_through > > $ python runtests.py --settings=settings --verbosity=2 m2m_through > > The output Failure r

Re: FK Autocomplete Widget [GSoC '09 Admin UI Improvements]

2009-05-26 Thread Alex Gaynor
On Tue, May 26, 2009 at 7:05 PM, Ulrich Petri wrote: > > > > > I don't know - maybe my needs are unusual. It's definitely not your > > standard blog app ... so if I am too much on the outskirts for this to > > be something that we consider in the development community, I can > > understand that.

Re: FK Autocomplete Widget [GSoC '09 Admin UI Improvements]

2009-05-26 Thread Ulrich Petri
> > I don't know - maybe my needs are unusual. It's definitely not your > standard blog app ... so if I am too much on the outskirts for this to > be something that we consider in the development community, I can > understand that. But it seems to me that having a dynamic (ie, object > based) wa

Re: DjangoAdmin - Permission in custom modules

2009-05-26 Thread JĂșlio Cesar
Well, I supose we resolve the problem. Our style programming is reverse then the accurate. Firstly we create the databases, after we make `inspectdb`, and create our models after this. In conformity with the django code(correct me if I'm wrong), permissions are only created when some new model a

Re: FK Autocomplete Widget [GSoC '09 Admin UI Improvements]

2009-05-26 Thread Yuri Baburov
Hey guys, Yes, I must say, in any advanced form there are fields that depends one from another. Country/Region/City, Project/Issue, Project/Owner, User/Account, Group/User... when two selects appear, there's not zero probability they will depend on each other. Also often a checkbox can enable/dis

Re: DurationField, request for help and comments

2009-05-26 Thread Yuri Baburov
Hi Marty, Jerome, I saw such widget in time planning apps (Jira bugtracker) and like it very much. When I need to tell that I will work "4 hours" on task, i don't want to see [ 0 ] days [ 4:00:00 ] seconds, and when I tell milestone will long for 6 weeks, i want to see just "1 month 2 weeks", not

Re: DurationField, request for help and comments

2009-05-26 Thread Marty Alchin
On Tue, May 26, 2009 at 2:16 PM, Jerome Leclanche wrote: > Right now, removing months and years is a matter of removing two lines > from the patch. I didn't want to write a patch just to get told "it's > lacking months/years!"; I'm also in favour of dropping it and > following Python's style; but

Django 1.0.2 Test Suite - Modeltests-m2m_through

2009-05-26 Thread Tarun Pasrija
Hi In my effort to contribute rectification of Django test suite, I ran it using the following command to select the model as m2m_through $ python runtests.py --settings=settings --verbosity=2 m2m_through The output Failure result is as follows:- Failed example: Person.objects.filter(membe

Re: DurationField, request for help and comments

2009-05-26 Thread Jerome Leclanche
Gul, appreciate the feedback. Right now, removing months and years is a matter of removing two lines from the patch. I didn't want to write a patch just to get told "it's lacking months/years!"; I'm also in favour of dropping it and following Python's style; but up until now no one except yoursel

Re: DurationField, request for help and comments

2009-05-26 Thread Marty Alchin
Okay, I'm finally back around looking into this situation, and I have to say I'm not thrilled with the direction it's currently headed. I've never liked the "1h 30m 10s" syntax in any situation I've ever encountered it, and I highly doubt that it will be meaningful to much of anyone. That's person

Re: DurationField, request for help and comments

2009-05-26 Thread Jerome Leclanche
I'm not sure what you mean by 31d bug. When I input "31d", I get a value of "1m 13h 30min 56s 167ms 200us", which is the correct duration. (=> http://www.google.com/search?q=how+many+days+in+a+month ). The problem of breaking into smaller parts is that a month isn't an integer amount of days; if i

Re: DurationField, request for help and comments

2009-05-26 Thread Yuri Baburov
Hi Jerome, On Mon, May 25, 2009 at 9:27 AM, Jerome Leclanche wrote: > > Hi Yuri, thanks for the fixes. Two questions: > > - Why mention *args at all (l20,21) if it's to assert they don't exist? Just to show friendlier user message. Without args TimeDelta(x) is TimeDelta(days=x) so it tells that