These are chat archives for allegro/ralph

15th
Oct 2018
Dopsterinho
@Dopsterinho
Oct 15 2018 11:41

Hello everybody,
Maybe you can help me once again out:
I have another Model, with RalphUser and BackOfficeAsset Model field query:

mitarbeiter = models.ForeignKey(

        settings.AUTH_USER_MODEL,
        blank=True,
        null=True,
        verbose_name=_('Mitarbeiter'),
        unique=True,
  )

notebook = models.OneToOneField(

        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 ?

image.png
Dopsterinho
@Dopsterinho
Oct 15 2018 11:47
If I assign the user form the BackOfficeAsset directly, it will sho up, but not if I do it from my Model...Any Ideas/Suggestions ?
Thanx in Advance !
COLIN GHERGHE
@zyraxe
Oct 15 2018 12:35
@vi4m Yes, I need to import some data into Ralph. Problem is with the link you sent that it does not work properly. Another group in my company tried that and they found it not to be properly functioning. We are now contemplating writing our own scripts (in Python?) and using API calls to get the job done. Problem is, I do not know where to start with this task -- I need some sort of hello_world program to guide me on how this is done in Ralph, or some documentation. Do you have anything like that handy?
✪ vi4m Marcin Kliks
@vi4m
Oct 15 2018 13:49
@zyraxe decribe first, which fields / objects you need to import
COLIN GHERGHE
@zyraxe
Oct 15 2018 14:17
@vi4m The job is to import a list of servers from another system, called Flexera. I have no specs at all yet, first task is to learn Flexera and mimic the data structure from that system into Ralph. The hard part (I was warned about) is to link those servers to lease contracts -- so I guess I have to bring over the contracts and the servers too. That is all I have so far.
Dopsterinho
@Dopsterinho
Oct 15 2018 14:50
image.png

Hello everybody,
Maybe you can help me once again out:
I have another Model, with RalphUser and BackOfficeAsset Model field query:

mitarbeiter = models.ForeignKey(

        settings.AUTH_USER_MODEL,
        blank=True,
        null=True,
        verbose_name=_('Mitarbeiter'),
        unique=True,
  )

notebook = models.OneToOneField(

        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 ?

✪ vi4m Marcin Kliks
@vi4m
Oct 15 2018 20:17
isn’t this working already?
@Dopsterinho screenshots attached showed you have „Mitarbeiter” field
which view is „RalphUser Additional Info” ?