mirror of
https://github.com/jazzband/django-eav2.git
synced 2026-04-19 22:51:01 +00:00
Merge branch 'master' of github.com:mvpdev/eav
This commit is contained in:
commit
5a5bf84f3d
1 changed files with 2 additions and 1 deletions
3
utils.py
3
utils.py
|
|
@ -110,7 +110,8 @@ class EavRegistry(object):
|
|||
gr_name = config_cls.generic_relation_field_name
|
||||
generic_relation = generic.GenericRelation(EavValue,
|
||||
object_id_field='entity_id',
|
||||
content_type_field='entity_ct')
|
||||
content_type_field='entity_ct',
|
||||
related_name=model_cls._meta.verbose_name_plural)
|
||||
generic_relation.contribute_to_class(model_cls, gr_name)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue