Changeset 3206
- Timestamp:
- 06/26/06 04:01:07 (2 years ago)
- Files:
-
- django/trunk/django/db/models/loading.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/db/models/loading.py
r3202 r3206 98 98 # appname.models and project.appname.models). We use the source 99 99 # filename as a means to detect identity. 100 fname1 = os.path. normpath(sys.modules[model.__module__].__file__)101 fname2 = os.path. normpath(sys.modules[model_dict[model_name].__module__].__file__)100 fname1 = os.path.abspath(sys.modules[model.__module__].__file__) 101 fname2 = os.path.abspath(sys.modules[model_dict[model_name].__module__].__file__) 102 102 # Since the filename extension could be .py the first time and .pyc 103 103 # or .pyo the second time, ignore the extension when comparing.
