#3332: field.attname should be used rather than using field.column
-----------------------+----------------------------------------------------
Reporter: annonymous | Owner: adrian Status: new | Component: Admin interface Version: SVN | Keywords: Stage: Unreviewed | Has_patch: 0 -----------------------+----------------------------------------------------
field.attname should be used rather than using field.column

line: 136 on django/contrib/admin/views/main.py
{{{
    def original_value(self):
        if self.original:
#            return self.original.__dict__[self.field.column]
            return self.original.__dict__[self.field.attname]
}}}

Otherwise, when "db_column" is used in primary_key field with foreign key,
it will be error.

--
Ticket URL: <http://code.djangoproject.com/ticket/3332>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to