diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-04-10 03:34:47 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-04-10 03:34:47 +0000 |
| commit | b8d8aca5fd810cd5906d382e5d2c6d04ed63dffb (patch) | |
| tree | b6afdaa7555feaf106640cc1fe87700bbef9b6a5 /django/models | |
| parent | e3e271ff921ba333f03dafe0306b57c59eb9d7e2 (diff) | |
Renamed ManyToOne to ManyToOneRel to be consistent with ManyToManyRel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2649 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/models')
| -rw-r--r-- | django/models/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/models/__init__.py b/django/models/__init__.py index ceb260574b..e6ecd2ccbe 100644 --- a/django/models/__init__.py +++ b/django/models/__init__.py @@ -32,7 +32,7 @@ for mod in modules: func = curry(meta.method_get_related, 'get_object', rel_mod, related.field) func.__doc__ = "Returns the associated `%s.%s` object." % (related.opts.app_label, related.opts.module_name) setattr(klass, 'get_%s' % rel_obj_name, func) - elif isinstance(related.field.rel, meta.ManyToOne): + elif isinstance(related.field.rel, meta.ManyToOneRel): # Add "get_thingie" methods for many-to-one related objects. # EXAMPLE: Poll.get_choice() func = curry(meta.method_get_related, 'get_object', rel_mod, related.field) |
