Re: Django REST and FILEFIELD field

2010-03-01 Thread manu.polline
hi malcolm, now i'm trying that but i get the error : "int() argument must be a string or a number, not 'QueryDict'" why? Hi, this is my model class CampaignFile(models.Model): chance = models.DecimalField(null=True, blank=True, default=1.0, decimal_places=2, max_digits=3,

Re: Django REST and FILEFIELD field

2010-03-01 Thread Malcolm Box
I've got this working in the past, but only by writing custom create() methods on the Collection and Entry classes. In the custom create() method you can process the POST/PUT data directly into the FileField just like you would for a normal form Malcolm On Thu, Feb 25, 2010 at 7:03 PM,

Re: Django REST and FILEFIELD field

2010-02-25 Thread manu.polline
Hi everyone, anyone help me?? On 22 Feb, 19:19, "manu.polline" wrote: > Hi everyone, > my name is Manuel. I'm tryng to upload a file directly in a filefield > of Django model exposed by django-rest-interface. > It'is possible? > this is my model : > > class

Django REST and FILEFIELD field

2010-02-22 Thread manu.polline
Hi everyone, my name is Manuel. I'm tryng to upload a file directly in a filefield of Django model exposed by django-rest-interface. It'is possible? this is my model : class File(models.Model): file = models.FileField(upload_to='files', help_text=_("file itself")) page =