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): def add_past_exists(start, end):
exists = models.InstanceExists.objects.select_related()\ exists = models.InstanceExists.objects.select_related()\
.filter(raw__when__gte=start, .filter(audit_period_beginning=start,
raw__when__lte=end) audit_period_ending=end)
i = 0 i = 0
for exist in exists: for exist in exists:
i += 1 i += 1