Ignore:
Timestamp:
Jul 2, 2010, 7:20:44 AM (15 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, fysm-4-1, space-access, stable, stage, test-hooks
Children:
869f620
Parents:
c71d5c7
git-author:
Alex Dehnert <adehnert@…> (07/02/10 07:20:44)
git-committer:
Alex Dehnert <adehnert@…> (07/02/10 07:20:44)
Message:

Provide link to view the FYSM in email

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/forms/views.py

    r3400018 radfe18c  
    169169            request_obj = form.save()
    170170
     171            view_path = reverse('fysm-view', args=[year, request_obj.pk, ])
     172            view_uri = '%s://%s%s' % (request.is_secure() and 'https' or 'http',
     173                 request.get_host(), view_path)
     174
    171175            # Send email
    172176            tmpl = get_template('fysm/update_email.txt')
     
    174178                'group': group_obj,
    175179                'fysm': fysm_obj,
     180                'view_uri': view_uri,
    176181                'submitter': request.user,
    177182                'request': request,
Note: See TracChangeset for help on using the changeset viewer.