id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 927 non-integer primary keys are broken since new-admin merge L.Plant.98@… Adrian Holovaty "From ""svn annotate django/core/meta/fields.py"", line 721 onwards: {{{ 1434 adrian def get_db_prep_save(self,value): 1434 adrian if value == '' or value == None: 1434 adrian return None 1434 adrian else: 1434 adrian return int(value) }}} That ""return int(value)"" obviously is not compatible with non-integer primary keys. The problem occurs outside of the admin - i.e. when creating objects and setting foreign keys manually in my migration script. " defect closed Metasystem normal fixed Unreviewed 0 0 0 0 0 0