Fix old bug from event class being renamed

- Legacy-Id: 3328
This commit is contained in:
Ole Laursen 2011-08-18 18:01:38 +00:00
parent b7b813e698
commit f87a378d5f

View file

@ -310,7 +310,7 @@ def import_from_idinternal(d, idinternal):
found = False
for p in positions:
if not d.docevent_set.filter(type="changed_ballot_position", ballotposition__pos=position, ballotposition__ad=iesg_login_to_person(p.ad)):
if not BallotPositionDocEvent.objects.filter(doc=d, type="changed_ballot_position", pos=position, ad=iesg_login_to_person(p.ad)):
login = p.ad
found = True
break