diff --git a/django/db/models/fields/related.py b/django/db/models/fields/related.py
index 2f1193f..e8a4b98 100644
a
|
b
|
def create_many_to_many_intermediary_model(field, klass):
|
819 | 819 | name = '%s_%s' % (klass._meta.object_name, field.name) |
820 | 820 | if field.rel.to == RECURSIVE_RELATIONSHIP_CONSTANT or field.rel.to == klass._meta.object_name: |
821 | 821 | from_ = 'from_%s' % to.lower() |
822 | | to = to.lower() |
| 822 | to = 'to_%s' % to.lower() |
823 | 823 | else: |
824 | 824 | from_ = klass._meta.object_name.lower() |
825 | 825 | to = to.lower() |