Changeset 5f07d50


Ignore:
Timestamp:
Sep 9, 2012, 6:43:39 AM (13 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage
Children:
ed5797d
Parents:
9ce8bc1
git-author:
Alex Dehnert <adehnert@…> (09/08/12 21:40:14)
git-committer:
Alex Dehnert <adehnert@…> (09/09/12 06:43:39)
Message:

Track GroupConstitution? revisions

Location:
asadb/groups
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/groups/gather_constitutions.py

    r2e5dc1b r5f07d50  
    1212import datetime
    1313import subprocess
     14
     15import reversion
    1416
    1517import groups.models
     
    7880if __name__ == '__main__':
    7981    if len(sys.argv) == 1 or sys.argv[1] == "gather":
    80         additions, changed = gather_constitutions()
     82        with reversion.create_revision():
     83            additions, changed = gather_constitutions()
     84            importer = django.contrib.auth.models.User.objects.get(username='gather-constitutions@SYSTEM', )
     85            reversion.set_user(importer)
     86            reversion.set_comment("gather constitutions")
     87
    8188        update_repo(additions, changed)
    8289    elif sys.argv[1] == "webstat":
Note: See TracChangeset for help on using the changeset viewer.