Has your Music model a __str__ method? Maybe you get nothing using {{ form.music }} because it is represented in no way. Have you tried {{ form.music.title }} or similar? As far as I know, instance.music_id refers to the id of the related object whereas instance.music refers to the object itself.
Good luck! Aidas Bendoraitis [aka Archatas] On 9/20/06, patrickk <[EMAIL PROTECTED]> wrote: > > > Am 20.09.2006 um 21:40 schrieb Ivan Sagalaev: > > > > > patrickk wrote: > >> thanks. the data is sent now, but > >> - how do I save the data in my custom manipulator, referring to: > >> temp.set_music(data['music']) > > > > It looks like 0.91 syntax. If you're using contemporary Django it > > should > > look like this: > > > > temp.music = Music.objects.filter(id__id=data['music']) > > doesn´t work. > I also tried: > temp.music = Music.objects.filter(id__id=data.getlist('music')) > > > > >> - how do I display the data (already in the database) on my site, > >> ref. to: > >> new_data = user_profile_manipulator.flatten_data() > >> > >> additionally: I don´t understand why I have to write > >> {{ form.music_id }} instead of {{ form.music }} - it´s the same with > >> foreign keys. > > > > In fact {{ form.music }} should work... > > doesn´t work either - when using {{ form.music }} I get nothing, with > {{ form.music_id }} the output looks ok. > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---