Comments (4)
@ulmus Create a resource with only the GET verb available.
from django-rest-framework.
@thedrow I don't think that solves the problem. The request is to have some fields ignored when writing back to the model.
For example, when someone GETs a resource, it includes the id key of the model. However, when PUTting an update to the model, if the "id" field is included, then the framework generates a "This field does not exist." error.
from django-rest-framework.
I solved this using the form
attribute on the resource, specifying the fields to read in the form, but I still have to filter them out in my (backbone-based) frontend.
from django-rest-framework.
Fixed in upcoming 2.0.
See part 1 of tutorial.
from django-rest-framework.
Related Issues (20)
- can't upload a .m4a file in post method HOT 1
- Breaking change: DateTimeField validation parsing HOT 5
- list in ListModelMixin could overwrite the builtins list method of python and causes error HOT 4
- Not possible to override serializer_field_mappings with a field that has choices (for example a from ChoiceField derived field) HOT 3
- Long rendering of ForeignKey fields HOT 3
- input type="date" validation message incorrect HOT 2
- Release the new version 3.15 HOT 1
- rest_framework.urls doesn't work with LogoutView in Django 5.0 HOT 11
- Decorator method @permission_classes is usable in python 3.10.12 HOT 1
- StaticHTMLRenderer cannot handle ValidationError HOT 2
- from django.utils.translation import ugettext_lazy as _ HOT 5
- Update method ignoring partial flag on serializer (updates all fields) HOT 4
- Security issue: There's a minute chance an existing token gets overwritten.
- I'm building an API back-end with DRF. The user sign-up process is as follows:
- Error Message When Authenticating with `User.is_active` Is `False` Could Be Improved HOT 1
- bug: Serializer can't constrain field uniqueness HOT 4
- _delegate_text was removed in Django 5. HOT 2
- Optimize M2M Field HOT 2
- Urls defined give a 404 no matter how they are defined
- .
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-rest-framework.