(Django) (Foreign Key Issues) model.person_id May not be NULL
问题 I know this seems to be an over-asked question in the Django circles but I'm afraid to say that i've not yet found the solution to this. My Model - from djago.... import User class InfoPersonal(models.Model): ... person = models.OneToOneField(User) I've tried overriding the save_model() in the admin definition and also overriding the save() in the Form but nothing seems to work. If you were to auto add data into a ForeignKey or OneToOneField column to a Model how would you do it? def profile