ember-drf
ember-drf copied to clipboard
Django Rest Framework adapters for Ember Data
Hi, I'd like to sideload data with multi-level relationships such as : ``` json { "workoutPlan": { "id": 1999, "name": "Test Plan", "workout_ids": [ 12452, 12453 ], }, "workouts": [...
I'm trying to get the basic example of sideloading work, but getting a TypeError. I'm using: Django==1.8.2 djangorestframework==3.1.3 emberdrf==0.1.8 inflection==0.3.1 Here is a very simple django project with the problem...
If I have the following models: ``` python class BigThing(models.Model): name = models.CharField(max_length=100) favorite = models.OneToOneField('ChildThing', related_name='favorite_of') class ChildThing(models.Model): father = models.ForeignKey(BigThing) name = models.CharField(max_length=100) ``` A ValueError is raised...
Hi, I have a model which has some nested relations, something like: ``` class Document(models.Model): node_positions = models.ManyToMany('NodePosition') def get_nodes(self): return Node.objects.filter(node_position__document=self) class NodePosition(models.Model): node = models.ForeignKey('Node') class Node(models.Model): pass...