Skip to content
Snippets Groups Projects
Verified Commit e0d51191 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix verbose name for remote syncable fields

parent a4055d1c
No related branches found
No related tags found
1 merge request!396Resolve "Support syncing fields across foreign keys"
This commit is part of merge request !396. Comments created here will be created in the context of that merge request.
......@@ -293,7 +293,7 @@ class ExtensibleModel(models.Model, metaclass=_ExtensibleModelBase):
):
# generate virtual field names for proxy access
name = f"_{field.name}__{subfield.name}"
verbose_name = f"{field.verbose_name} -> {subfield.verbose_name}"
verbose_name = f"{field.name} ({field.related_model._meta.verbose_name}) -> {subfield.verbose_name}"
if not hasattr(cls, name):
# Add proxy properties to handle access to related model
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment