Using audit_period instead of raw__when in past launch migration

This commit is contained in:
Andrew Melton 2013-04-02 16:30:03 -04:00
parent 194f1f4f4f
commit 118ff155c6

View File

@ -18,8 +18,8 @@ if __name__ != '__main__':
def add_past_exists(start, end):
exists = models.InstanceExists.objects.select_related()\
.filter(raw__when__gte=start,
raw__when__lte=end)
.filter(audit_period_beginning=start,
audit_period_ending=end)
i = 0
for exist in exists:
i += 1