Hey, I'm trying to write a manytomany into the database. I have created the form correctly, using {{ form.courses }}, and I can upload everything. The problem comes when writing the data to the database. I take the field as following: courses = new_data['courses'] And then to write it, I do the following: new_profile = UserProfile(user=new_user, courses=courses, permissions=permissions)
Problem is, I get "'courses' is an invalid keyword argument for this function". If I try to print courses, I get a number. 1 if I choose the first option, 2 if I choose option 2 and 1 or just 2, and 3 if I choose three in any way, with others or alone. What exactly do I need to do with this to write it into the database? -- No violence, gentlemen -- no violence, I beg of you! Consider the furniture! -- Sherlock Holmes Gabriel Puliatti [EMAIL PROTECTED] predius.org
signature.asc
Description: This is a digitally signed message part