Just found this:

http://pypi.python.org/pypi/django-sortedm2m/0.3.2

It looks awesome.  Thanks, Gregor.

Going to try it out. Will post back if I have problems.

br

On Apr 26, 9:06 am, br <robert...@gmail.com> wrote:
> I am creating an application for displaying decks of slides.   Each
> slide may be in more than one deck.  Order of the slides in a deck
> matters.   So, I have a many to many relation.
>
> class Slide(BaseModel):
>     """Represents a slide in a slide deck for a display""
>
> class Deck(BaseModel):
>     name = models.CharField(max_length = 45, unique=True  )
>     slides = models.ManyToManyField(Slide, through='DeckSlides')
>
>  class DeckSlides(BaseModel):
>     deck = models.ForeignKey(SlideDeck)
>     slide     = models.ForeignKey(Slide)
>     slide_position    = models.PositiveSmallIntegerField()
>
> I am trying to figure out how I can use Admin to both select slides
> for a deck (which is already provided by the default M2M control) and
> set the ordering of the slides in the Deck (not provided by default
> for an M2M in admin).  I'm guessing people have had to face this
> before. I've googled it but am not finding a solution.
>
> Thanks
>
> br

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to