Opened 15 years ago

Last modified 13 years ago

#11807 closed

Admin inlines onetoone related object not saved — at Initial Version

Reported by: nemesys@… Owned by: nobody
Component: contrib.admin Version: 1.1
Severity: Normal Keywords: admin inline onetoone save
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description

Hi there,

I have the following models:

class A(models.Model):

id = models.AutoField(primary_key=True)

class B(models.Model):

mya = models.OneToOneField(A, primary_key=True)
text = models.TextField(default='Init')

In admin interface, I have used an inline to include B when
changing/adding an A. Adding/Changing an A without touching the B inline
results in A beeing saved, but not B. Changing the textfield from B into
sth other than default and it works, but I want the default beeing saved too.

Thanks!
Jean

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top