Formularz modeli Django 2 1
Wciąż jestem całkowitym noobem w Django i zastanawiałem się, jak wykonać następujące czynności:
Powiedzmy, że mam coś podobnego do poniższego kodu:
class UserProfile(models.Model):
#Some fields
class UserProfileOther(models.Model):
#Some other fields that I want in another table for organization
user_profile = models.OneToOneField(UserProfile)
Jak teraz utworzyć formularz zawierający oba powyższe modele?