Changeset 5d6b5f0


Ignore:
Timestamp:
Jun 5, 2013, 5:46:27 AM (13 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, stable, stage
Children:
242566d
Parents:
f38b6d0
git-author:
Alex Dehnert <adehnert@…> (06/05/13 05:46:27)
git-committer:
Alex Dehnert <adehnert@…> (06/05/13 05:46:27)
Message:

Add note on successful recognition, too (ASA-#213)

We had been adding a note when recognition was rejected. Now we also add a note
when recognition is granted, including storing the user who hit "Approve".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/groups/views.py

    rf38b6d0 r5d6b5f0  
    854854            group.set_updater(request.user)
    855855
     856            note = groups.models.GroupNote(
     857                author=request.user.username,
     858                body="Approved group for recognition.",
     859                acl_read_group=True,
     860                acl_read_offices=True,
     861                group=group,
     862            ).save()
     863
    856864            group.save()
    857865            officer_emails = create_group_officers(group, group_startup.__dict__, )
Note: See TracChangeset for help on using the changeset viewer.