Closed wyrzykow closed 1 year ago
the problem is generated here:
TargetName.objects.create(target=target, source_name=k.name, name=v)
in hooks.py
or in update:
If you set GAIA_Alerts name to Gaia19dir and CPCS name to Gaia19dir.
Fixed by modifying model for TargetName in bhtom_base,
name = models.CharField(max_length=100, unique=False, verbose_name='Alias')
and making migrations (makemigrations, migrate).
The aliases can have the same name, and the key should be the source, not the name, for example GAIA_ALERTS should be the key, not Gaia19dir.