A foreignKey with aunique attribute is same as using a OnetoOneField so either can suit your needs
and please be clear about saving On Tue, Jun 18, 2019 at 1:56 PM 'Shreejith Unnikrishnan Nair' via Django users <django-users@googlegroups.com> wrote:
I'm beginner , so i need help--Please suggest me the best practice to save the OnetoOneField in django.--Thanks & Regards,Shreejith
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/CADGnmLwY8wQmZ%2BOh40rG_%3DRiENRK84JWQ1v2hy2y3Wk3OnHsUA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
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/CAMz%3Dh%3DRSkmDGB3j5rCoRptPrv9DW6XBoGcExsruay%3DpkAgBO2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment