Use OneToOneField instead of ForeignKey(unique=True)
It's cleaner approach to define the same relation.
Signed-off-by:
Michal Čihař <michal@cihar.com>
Showing
Please register or sign in to comment
It's cleaner approach to define the same relation.
Signed-off-by:
Michal Čihař <michal@cihar.com>