We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf24f77 commit 1604b00Copy full SHA for 1604b00
categories/fields.py
@@ -3,18 +3,16 @@
3
4
class CategoryM2MField(ManyToManyField):
5
def __init__(self, **kwargs):
6
- from .models import Category
7
if 'to' in kwargs:
8
kwargs.pop('to')
9
- super(CategoryM2MField, self).__init__(to=Category, **kwargs)
+ super(CategoryM2MField, self).__init__(to='categories.Category', **kwargs)
10
11
12
class CategoryFKField(ForeignKey):
13
14
15
16
17
- super(CategoryFKField, self).__init__(to=Category, **kwargs)
+ super(CategoryFKField, self).__init__(to='categories.Category', **kwargs)
18
19
20
try:
0 commit comments