Changes between Initial Version and Version 1 of Ticket #8748
- Timestamp:
- Sep 1, 2008, 12:26:40 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #8748 – Description
initial v1 2 2 My models.py has an abstract superclass, which defines (beside other things) the primary key (as a UID): 3 3 4 {{{ 4 5 class StdHeader(models.Model): 5 6 """ … … 17 18 class Meta: 18 19 abstract = True 19 20 }}} 20 21 21 22 Now: in later SVN versions (specifically in SVN 8785) there are "KeyErrors" 22 23 in dependend Models: 23 24 24 I.E: 25 I.E: 26 27 {{{ 25 28 class Person(StdHeader): 26 29 … … 33 36 street = models.CharField(max_length=40, blank=True) 34 37 #... 35 38 }}} 36 39 37 40 Adding a record to Person results in: 38 41 42 {{{ 39 43 File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/template/loader_tags.py", line 123, in render 40 44 return t.render(context) … … 67 71 raise KeyError('Key %r not found in Form' % name) 68 72 KeyError: "Key 'pkey' not found in Form" 73 }}} 69 74 70 75 Note: There might be a relation to ticket #8562 as i got the same trace when editing/saving.