Changes between Initial Version and Version 1 of Ticket #19467


Ignore:
Timestamp:
Dec 13, 2012, 7:59:28 PM (11 years ago)
Author:
Karen Tracey
Comment:

Fixed formatting, please use WikiFormatting and preview before posting.

Could you provide a complete example of parent/child models plus the admin classes you are using? It's going to require a bit of guesswork to try to replicate the error you describe with just a single model definition and no guidance on how you have set up the admin defs.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19467

    • Property Resolutionneedsinfo
    • Property Status newclosed
  • Ticket #19467 – Description

    initial v1  
    11Seems that model forms or admin dones't clean correctly inline forms.
    2 
     2{{{
     3#!python
    34class Child(models.Model):
    45   parent = models.ForeignKey(Parent)
     
    910           self.something = None
    1011       super(Child, self).clean()
    11 
     12}}}
    1213
    1314Postgres raises a: duplicate key value violates unique constraint "child_something_key"
Back to Top