Hi there,
I have a simple python method that should be returned by Django/pyAMF but it's returning HTTP Status 500 instead (although I do pass through the method with no error and the Grupo object is created):
def newGrupo(request, igID):
return { 'grupo': Grupo.objects.create(ig = Ig.objects.get(pk=igID)),
'membros' : None,
'reponsavel' : None
}
The weirdest thing is that another call that do almost the same thing (it actually returns a list of the previous) return ok:
def listGrupos(request, igID):
result = []
for grupo in Grupo.objects.filter(ig=igID):
grp = {}
grp['grupo'] = grupo
grp['membros'] = grupo.membro_set.filter(ativo=True)
grp['responsavel'] = grupo.responsavel
result.append(grp)
return result
Any idea why?