79656496

Date: 2025-06-06 21:24:29
Score: 1
Natty:
Report link

You will want to use OneToOneFields for the relationship, that way it guarantees there is at most one of each of the other table rows for the your table:

https://docs.djangoproject.com/en/5.1/topics/db/examples/one_to_one/#one-to-one-relationships

To do this all via forms, you will want to look into model formsets.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
Posted by: Apollo Data