2d
comment Enumerating model choices in a Django Rest Framework serializer
Ah. Then you could create a model that does have all values of that type.
2d
comment Enumerating model choices in a Django Rest Framework serializer
Expose that model through a URL. In your AngularJS controller do a $http.get() to retrieve all the values. Stick those values on the $scope variable ( call it foo). Then reference that foo as an ng-options attribute of your <select> element.
2d
accepted Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html?
Mar
23
comment Authentication in python rest api client
It looks like you aren't logged in to the django site. Do you get a login prompt if you go to http://localhost:8001/3.0/ ? As far as a js client, consider following this tutorial.
Mar
23
revised Authentication in python rest api client
formatting
Mar
23
answered Django Rest Framework XML - Create multiple objects with a different xml name field compared to the Django Model
Mar
20
revised How to schedule a stored procedure in MySQL
You need the `CALL` token in the child statement of the `DO` statement.
Mar
18
revised How to get field names when running plain sql query in django
formatting
Mar
17
revised How to disable IPv6 in Ubuntu 14.04?
more grammar fixes.
Mar
17
revised How to disable IPv6 in Ubuntu 14.04?
grammar fixes
Mar
16
comment Rarely executed and almost empty if statement drastically reduces performance in C++
It could also be a rare'ish branch prediction aliasing symptom. One of his subroutines could map to the same entry in the branch prediction logic and thus the branch prediction could be thrashing back and forth based on two different branches at two different instruction memory locations. Fiddling with the code would offset the location of the branch and cause a different branch prediction entry to be used, thus not causing branch prediction thrash.
Mar
16
accepted How can polymorphic items be broken into their respective related lists on a container?
Mar
14
accepted How do you override a ModelViewSet's get_queryset in Django Rest Framework 3?
Mar
13
awarded Notable Question
Mar
13
revised How can polymorphic items be broken into their respective related lists on a container?
added 89 characters in body
Mar
13
answered How can polymorphic items be broken into their respective related lists on a container?
Mar
12
revised For django-model-utils, how can `select_subclasses()` be applied to fields of an object?
added 1 character in body
Mar
12
comment How can polymorphic items be broken into their respective related lists on a container?
Yeah, Parent.objects would have the Child instances as Parent objects.
Mar
12
asked How can polymorphic items be broken into their respective related lists on a container?
Mar
12
revised How do you override a ModelViewSet's get_queryset in Django Rest Framework 3?
updating example to show intent behind `get_queryset` usage.
1 2 3 4 5