Hello everybody,
Maybe you can help me once again out:
I have another Model, with RalphUser and BackOfficeAsset Model field query:
settings.AUTH_USER_MODEL,
blank=True,
null=True,
verbose_name=_('Mitarbeiter'),
unique=True,
)
BackOfficeAsset,
blank=False,
default=None,
max_length=200,
null=False,
)
How can I make, that the User assigned to an Asset (in My Model) is visible in the RalphUser AdditionalInfo HTML Assets ?
Hello everybody,
Maybe you can help me once again out:
I have another Model, with RalphUser and BackOfficeAsset Model field query:
settings.AUTH_USER_MODEL,
blank=True,
null=True,
verbose_name=_('Mitarbeiter'),
unique=True,
)
BackOfficeAsset,
blank=False,
default=None,
max_length=200,
null=False,
)
How can I make, that the User assigned to an Asset (in My Model) is visible in the RalphUser AdditionalInfo HTML Assets ?
Hy @vi4m :
icon = 'user'
name = 'user_additional_info'
label = _('Additional info')
url_name = 'user_additional_info'
It is working if I assign the user directly on the BackOfficeAsset . If I do it from My model with the "Mitarbeiter" Field, it won't Show up in additional Info.
I am Pretty sure it has something to do with the Api, or the View of RalphUser or the my Model by itself ? There is something that I am missing...A class method Maybe ? My Model is Pretty Basic...
So if the User Field from the BackofficeAsset gets populated by my "Mitarbeiter" Field Value, then the Additional_USer_Info.html, will also get populated.
/opt/ralph/ralph-core/bin/ralph createsuperuser