Good afternoon people.
.
.
I have two models: Person and Address
Address has a Person fk
I would like to register the addresses of people without the need to manually point to which person's given address will belong.
.
.
I was directed to use inlines but I hate the admin of django because if I use only the admin I will get fond and I will never have the courage to make out of the admin.
.
.
I'm also no fan of the solutions they use out there like inlines.
I do not think they look good for users.
So I thought the following:
I fill in the data of the people form and when doing the submit and the django record I enter in the url of editing the person, there I will use another html displaying the data that I recorded and a table with the addresses that the person could have.
Next to this table I would put a button that would call the address register url where the person's fk would be invisible to the user, ie I would pass the id person to be used in the address book.
.
.
And finally after recording the address I would go back to the person editing form and that address would be displayed on the table along with the person's data.
You see?
Can someone help me?
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/e7b65480-2f74-443b-98ee-6d8237cdcdcf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment