Sir how can we use or implement the on_delete CASCADE functionality in ManyToManyField ? As on_delete attribute is not present for ManyToManyField, so we need to write signals post_delete for this. So can u plz provide any other idea for the same ?
@sanatwagh72364 жыл бұрын
What would be structure for teachers and subjects..like many teachers can teach many subjects... How can I use manytomany field ?
@PythonBricks4 жыл бұрын
create a model for teacher and another model for subjects in teacher model create a field subjects which will be many to many field.. create another model for students and in that have a field for teachers and make that many to many.. assign all teachers who teaches x student and that teacher will be assigned various subjects..
@sanatwagh72364 жыл бұрын
@@PythonBricks thanks man.... How can I contact u.. I hv created a database design. Can u just tell if it requires any changes?
@PythonBricks4 жыл бұрын
you can visit to pythonbricks.pythonanywhere.com/ or write to pythonbricks@gmail.com
@pranavjandu4 жыл бұрын
You could have done that by using getlist() instead of get() and then handling the list with json.loads and json.dumps
@leonwinkel60843 жыл бұрын
dude mention that it is in hindi in the title. There are also people from other countries searching for this, thanks