thanks. the data is sent now, but
- how do I save the data in my custom manipulator, referring to:
temp.set_music(data['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.

thanks,
patrick

Am 20.09.2006 um 20:17 schrieb Ivan Sagalaev:

>
> va:patrick.kranzlmueller wrote:
>>          self.fields = (
>>              forms.CheckboxSelectMultipleField(field_name="music",
>> choices=MUSIC_CHOICES),
>>          ...
>>          )
>
> I guess I know what is it... CheckboxSelectMultipleField
> worksinexplicably different from SelectMultipleField in that it  
> doesn't
> use a field's name for checkboxes but instead counts them (music1,
> music2, ...)
>
> But it is fixable:
>
>> manipulator = UserprofileManipulator()
>> user_profile_manipulator = UserProfile.ChangeManipulator
>> (request.user.id)
>> user_profile = user_profile_manipulator.original_object
>> if request.POST:
>>      new_data = request.POST.copy()
>
> After this line add:
>
>      manipulator.prepare(new_data)
>
> This will convert counted names back to normal.
>
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to