Ordered ManyToMany

2008-06-26 Thread OliverMarchand

Dear Django Developers,

I think Django is really wonderful, but I am puzzled that it contains
so few "ordering features". We often have the case that a user wants
to select from a list of possible choices (normal select) *plus* wants
to specify an ordering. Typically in applications this is done using
up/down arrows next to the box displaying the selected values.

Now I see two areas where ordering features could be useful:

=== Form Field/Widget ===

The normal ChoiceField has no ordering. I am no Javascript expert, but
I think it is very simple to write a widget where the selected choices
can also be ordered. Assuming that the chosen parameters appear in the
specified order in the GET or POST prtocol, the order can be retrieved
from the server.

=== ManyToMany Fields ===

The above would be very useful for values stored in the database as
well. It would be nice to have an OrderedManyToMany Field. That would
assume that the intermediate table for a a many-to-many relationship
would also have a column for storing the order. One could use the id
column of the intermediate table. Do you agree that it could be very
simple to write an OrderedManyToMany Field, but simply adding the up/
down feature to the widget?

2 questions:
* How do you usually handle ordering?
* Has anything been done in the direction I indicated?

thanks,
   Oliver
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~--~~~~--~~--~--~---



Re: Ordered ManyToMany

2008-07-03 Thread OliverMarchand

Thanks for your answer all!
I really appreciate it!

In the meantime, I have thought of the following ugly but simple
solution. A comma (or whatever character) seperated list of primary
keys in a  CharField can hold the values in the order needed. Now the
only thing I need is a widget that generates this list.
Somewhat similar to: http://www.nuff-respec.com/external/javascriptgui.html
(Except that he above demo does not select, it just orders)
I would then need to write my own accessor functions for the related
model objects.

Any comment on that?
Oliver

On Jun 27, 11:42 am, Jonas Pfeil <[EMAIL PROTECTED]> wrote:
> > I think Django is really wonderful, but I am puzzled that it contains
> > so few "ordering features". We often have the case that a user wants
> > to select from a list of possible choices (normal select) *plus* wants
> > to specify an ordering. Typically in applications this is done using
> > up/down arrows next to the box displaying the selected values.
>
> This is indeed a very common use case and has been requested many
> times (e.g. here [1]). The good news is that Django has scheduled the
> 1.0 release early September. This means it’s very probably not going
> to be addressed right now. But once 1.0 is out the door the ancient
> ticket #13 [2] will be (hopefully) revisited :) It has a mock-up of
> the admin interface proposed [3] but no patch yet.
>
> On the JS-lib/flamewar issue. If I recall correctly the admin is not
> considered to belong to the core of Django (even though it’s _the_
> killer feature for many). It's merely an application. As such it has
> to use the techniques necessary. Unless someone volunteers to rewrite
> a JS for Django from scratch this includes using a lib. I don't think
> that's that much of an issue though. Let's just come up witch a
> sensible list and have people with commit privileges vote on it :)
>
> But post 1.0 ;)
>
> Cheers,
>
> Jonas
>
> [1]http://code.djangoproject.com/ticket/6118
> [2]http://code.djangoproject.com/ticket/13
> [3]http://media.wilsonminer.com/images/django/related-objects-mock.gif
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~--~~~~--~~--~--~---



What do you need for crowdfunding Django?

2014-03-03 Thread olivermarchand
Dear Django developer,

A lot of you invest their personal time for shaping Django. That's great! 
But at the end of the day you all have to buy bread, pay rent and need new 
laptops... www.100-days.net  is a crowd-sourcing 
platform that wants to help the open source movement and asks for your 
input on how to best help you get all your projects properly funded. Many 
of you have seen the success story of  Andrew Godwin in funding schema 
migrations for Django. The projects was funded in an hour and 5 minutes and 
raised 
a total of 17K £ instead of 2.5K £. (
https://www.kickstarter.com/projects/andrewgodwin/schema-migrations-for-django
) We think that this is a new "social net economy" developing and we want 
to help shaping it.

Here are our questions:

* Have you ever considered funding your project through a crowd
sourcing platform? Why yes, why no?

* What would it take for you to register a project?

* Which features would you love to see on 100-days for developers
(github integration, project management, specification tools, ...)?

thanks for your help,
Oliver

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/41833af6-e575-46ca-9058-0b2d2611a178%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.