Django 2 Modelle 1 bilden
Also bin ich immer noch ein absoluter Noob in Django und habe mich gefragt, wie ich Folgendes machen soll:
Nehmen wir also an, ich habe so etwas wie den folgenden Code:
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)
Wie erstelle ich jetzt ein Formular, das beide oben genannten Modelle enthält?