You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-piston
I'd like to create a handler such that I can make a post request to
create a new django User and an associated profile.
I'm specifying the model to be my profile model since it references
User as a foreign key. I don't have any problems when I try to do
this for 'GET', but run into problems when doing a 'POST'. When I
try to specify the username in my http PUT request, piston says it
cannot resolve keyword 'username' into a field. If I omit the
'username' from my POST request, I get a message saying that it is
required. How can I specify what I what the username is going to be
for the new User object?