Changes between Initial Version and Version 1 of Ticket #8748


Ignore:
Timestamp:
Sep 1, 2008, 12:26:40 PM (16 years ago)
Author:
Brian Rosner
Comment:

Fixed description formatting.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8748 – Description

    initial v1  
    22My models.py has an abstract superclass, which defines (beside other things) the primary key (as a UID):
    33
     4{{{
    45class StdHeader(models.Model):
    56    """
     
    1718    class Meta:
    1819       abstract = True
    19 
     20}}}
    2021
    2122Now: in later SVN versions (specifically in SVN 8785) there are "KeyErrors"
    2223in dependend Models:
    2324
    24 I.E:
     25I.E:
     26
     27{{{
    2528class Person(StdHeader):
    2629   
     
    3336    street      = models.CharField(max_length=40, blank=True)
    3437    #...
    35 
     38}}}
    3639
    3740Adding a record to Person results in:
    3841
     42{{{
    3943  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/template/loader_tags.py", line 123, in render
    4044    return t.render(context)
     
    6771    raise KeyError('Key %r not found in Form' % name)
    6872KeyError: "Key 'pkey' not found in Form"
     73}}}
    6974
    7075Note: There might be a relation to ticket #8562 as i got the same trace when editing/saving.
Back to Top