Re: Relationships exposed over RESTful interface

2014-04-11 Thread Conrad Rowlands
rer','url','SeriesStartDate','SeriesEndDate','SourceUrl','LastChecked') On Friday, 11 April 2014 15:01:22 UTC+1, Javier Guerra wrote: > > On Fri, Apr 11, 2014 at 8:31 AM, Conrad Rowlands > > wrote: > > As you can see the

Re: Relationships exposed over RESTful interface

2014-04-11 Thread Conrad Rowlands
ility. I am using a browser and I am using the DebogToolbar which I would be totally lost without! On Friday, 11 April 2014 15:01:22 UTC+1, Javier Guerra wrote: > > On Fri, Apr 11, 2014 at 8:31 AM, Conrad Rowlands > > wrote: > > As you can see the queryset is loading all from the

Re: Relationships exposed over RESTful interface

2014-04-11 Thread Conrad Rowlands
) with the ManufacturerViewSet. I'm guessing this could be achieved by overriding get_queryset in my ManufacturerViewSet though I don't know what to do from there? On Friday, 11 April 2014 14:17:11 UTC+1, Javier Guerra wrote: > > On Fri, Apr 11, 2014 at 3:51 AM, Conrad Rowlands &

Re: Relationships exposed over RESTful interface

2014-04-11 Thread Conrad Rowlands
that would allow me to load this data using only the 1 queries bringing in all of the related fields in the original query. Thanks again for your help. Kind regards Conrad On Thursday, 10 April 2014 14:58:36 UTC+1, Javier Guerra wrote: > > On Thu, Apr 10, 2014 at 8:29 AM, Conrad Ro

Relationships exposed over RESTful interface

2014-04-10 Thread Conrad Rowlands
Hi, I have an issue with regard to exposing a RESTful interface using filtersets and HyperLinkedModelserialisers. I have two model classes defined thus: class Manufacturer(CommonExtendedIcon): WebSite=models.CharField(max_length=1024) StandardList=models.BooleanField(default=False)

Filtersets

2014-04-01 Thread Conrad Rowlands
Hi All. I wonder if anyone can point me in the right direction. I am building a web api using django and FilterSets and wish to allow consumers to perform a query along the lines of Manufacturer =x OR manufacturer = y etc etc Is this achievable out of the box and how would you specify this wit