I have a requirement where a user creates an 'example' of an object through a model. Another user of a different group has the facility of reading all the fields in the form, but only one field has to be updated. Think of a student who makes an examination object and then takes a test to teach and only needs to be put in one grade, the other exam is read.
What is the best way to do this? Do I just ask for the object, and should display each field individually, then just a form for a field (no model form)?
Do I query only for the object, and display each field individually Should, then a form for a field (not model model)? Create
This is the best way to go about it Note that Maybe use ModelForm
for teacher form See, Django Documentation. You must manually display all other fields in your template, but you should probably have a separate template for this view (I will also use different ideas).
You can get some code to read just on the field, but it is generally better to be clear that which areas you are updating from each view
No comments:
Post a Comment