Saving OnetoOne Field

19 views
Skip to first unread message

Shreejith Unnikrishnan Nair

unread,
Jun 18, 2019, 6:56:41 AM6/18/19
to django...@googlegroups.com
I'm beginner , so i need help 
Please suggest me the best practice to save the OnetoOneField in django.

--
Thanks & Regards,
Shreejith

Lutalo Bbosa joseph

unread,
Jun 18, 2019, 11:40:53 AM6/18/19
to django...@googlegroups.com
A foreignKey with aunique attribute is same as using a OnetoOneField so either can suit your needs
 and please be clear about saving

--
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...@googlegroups.com.
To post to this group, send email to django...@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.

Dan Davis

unread,
Jun 18, 2019, 11:57:52 AM6/18/19
to Django users

Shreejith Unnikrishnan Nair,

Is this in a ModelForm or the intsance itself?   That would help to give guidance...


On Tuesday, June 18, 2019 at 11:40:53 AM UTC-4, Lutalo Bbosa joseph wrote:
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...@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...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages