Fix system person hack to actually work on a fresh import
- Legacy-Id: 3155
This commit is contained in:
parent
1bea94eb12
commit
7f6f9a35da
|
@ -27,9 +27,11 @@ except Person.DoesNotExist:
|
|||
address="",
|
||||
)
|
||||
|
||||
if system_person.id != 0: # work around bug in Django
|
||||
Person.objects.filter(id=system_person.id).update(id=0)
|
||||
system_person = Person.objects.get(id=0)
|
||||
system_person = Person.objects.get(name="(System)")
|
||||
|
||||
if system_person.id != 0: # work around bug in Django
|
||||
Person.objects.filter(id=system_person.id).update(id=0)
|
||||
system_person = Person.objects.get(id=0)
|
||||
|
||||
|
||||
system_alias = Alias.objects.get_or_create(
|
||||
|
|
Loading…
Reference in a new issue