You cannot post messages because only members can post, and you are not currently a member.
|
Mixing global and "per view" based permissions
|
| |
If I want to apply authentication across my entire api I can use the settings below globally REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSE S': ( 'my.authentication_classes.Sig nedOrSessionAuthentication', ), 'DEFAULT_PERMISSION_CLASSES': ( 'my.permission_classes.ForceAu thentication',... more »
|
|
How to best nest info of through model in Serializer
|
| |
...class Facility(models.Model): name = models.CharField(max_length=25 5, unique=True) icon = models.CharField(max_length=25 5, blank=True) class ProvidesLocationFacility(model s.Model): facility = models.ForeignKey('Facility') location = models.ForeignKey('Location', verbose_name=_('location'))... more »
|
|
custom XML renderer
|
| |
I'm mainly dealing with the terms of nodes (e.g. root or list-items) and I plan to change these names to more declarative ones. I'm having something like this in mind: [link] Has anyone implemented a custom XML renderer? If so, any hints on what's the best practice?... more »
|
|
CreateModelMixin sends everything back to the user
|
| |
Hello together. I just found out that the "create" method of "CreateModelMixin" sends everything back to the client after the instance was created. Why is this the default? It seems to me that it just bloats the network traffic, especially if the user submitted a lot of data. What do you recommend to... more »
|
|
possible bug with POST relation
|
| |
I've restricted get_queryset with a view (ModelViewSet) for the currently logged–in user.
When viewing the list, everythings fine when I'm trying to access an object bound to another user (404 not found).
However, when doing a POST and trying to add a wrong relation it works ... {
"title":"test title",... more »
|
|
Odd behavior with the @action decorator
|
| |
I'm experiencing some weird behavior with the @action decorator when adding new methods to a viewset. First off, if I don't include parens like: @action() I get the following error: File "/home/cniedzwiedz/Development /finance/trading_agent_web/sta sisapi/views.py", line 124, in SimulationViewSet... more »
|
|
setting language (for error messages)
|
| |
is there an easy way to set a different language for the API (compared with the rest of the site)?
because a) I want my API to be in english while the rest is in german and b) some error messages (e.g. date–field) do not seem to be translated at all ... and in order to avoid a language mix I'd prefer to stick with... more »
|
|
DjangoCon Europe 2013 Sprints
|
| |
I'm currently at the absolutely incredible DjangoCon Europe 2013<[link]>
.
The coding sprints start tomorrow (saturday), and I've been marking up some of the more friendly tickets with the ★djangocon★ <[link]> ta
g.
I'm hoping we'll be able to power through some of these.... more »
|
|
Mongo
|
| |
Are there any tutorials online showing how to serialize into mongodb?
|
|
|