Django

Code

Changeset 2712

Show
Ignore:
Timestamp:
04/17/06 18:13:48 (3 years ago)
Author:
lukeplant
Message:

Fixed attribute error in an exception message

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/magic-removal/django/db/models/fields/related.py

    r2651 r2712  
    117117    def __get__(self, instance, instance_type=None): 
    118118        if instance is None: 
    119             raise AttributeError, "%s must be accessed via instance" % self._field.name 
     119            raise AttributeError, "%s must be accessed via instance" % self.field.name 
    120120        cache_name = self.field.get_cache_name() 
    121121        try: