mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
Reconstitute migration file
Do the things as a proper 3-step process -- add new stuff, copy the data, drop the old.
This commit is contained in:
committed by
Seth Foster
parent
4c5ac1d3da
commit
82323390a7
@@ -67,10 +67,9 @@ class HasPolicyEditsMixin(HasEditsMixin):
|
||||
class InstanceLink(BaseModel):
|
||||
class Meta:
|
||||
ordering = ("id",)
|
||||
constraints = [models.UniqueConstraint(fields=['source', 'target'], name='source_target_unique_together')]
|
||||
|
||||
source = models.ForeignKey('Instance', on_delete=models.CASCADE, help_text=_("The source instance of this peer link."))
|
||||
target = models.ForeignKey('ReceptorAddress', on_delete=models.CASCADE, help_text=_("The target receptor address of this peer link."))
|
||||
target = models.ForeignKey('ReceptorAddress', null=True, on_delete=models.CASCADE, help_text=_("The target receptor address of this peer link."))
|
||||
|
||||
class States(models.TextChoices):
|
||||
ADDING = 'adding', _('Adding')
|
||||
|
||||
Reference in New Issue
Block a user