Hola,
Las relaciones M2M pueden trabajarse de diferentes formas, acá está la doc de django
Si lo que quieres es hacer algo rápido puedes usar un model form factory
del modelo que desear y luego relacionarlo con el objeto que quieras por ejemplo
Si lo único que necesita es relacionarlos porque los tiene ya creados entonces puede hacer un formulario y usar un campo como
ModelMultipleChoiceField (https://docs.djangoproject.com/en/2.2/ref/forms/fields/#django.forms.ModelMultipleChoiceField)
Si puedes dar un mejor ejemplo de lo que quieres hacer le podemos ayudar más.
Saludos.
El lun., 8 abr. 2019 a las 17:40, <tatianamesa687@gmail.com> escribió:
Hola, me gustaría saber de que manera se hace un update cuando tengo una relación de muchos a muchos en django, apreciaría mucho sus ayudas :)--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/64971258-aa7b-4a4b-9532-94f0272e94a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
"La utopía sirve para caminar" Fernando Birri

You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAG%2B5VyM2J5y9WrUC9YPwJ6PeH6zNboJK%3D4hAScVDFAB%2B6vsMjA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment