Ignore:
Timestamp:
02/23/12 14:26:38 (2 years ago)
Author:
yomguy <yomguy@…>
Branches:
master, crem, crem2, dev, dev2, diadems, feature/breadcrumbs, feature/ts-0.5, feature/ts-0.5.4, feature/writecache, forma, generic, instru_search, lam, lam2, mapsv3, merge, nlivemulti, production, release/1.4.4, sabiod, security, server, social, storage, telecaster, test
Children:
4f292bf
Parents:
b3287a8
git-author:
yomguy <yomguy@…> (02/23/12 14:26:38)
git-committer:
yomguy <yomguy@…> (02/23/12 14:26:38)
Message:

add user revisions to user profile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • telemeta/views/base.py

    rea5ec32 r0d2f73e  
    13751375            profile = None 
    13761376        playlists = get_playlists(request, user) 
    1377         return render(request, template, {'profile' : profile, 'usr': user, 'playlists': playlists}) 
     1377        user_revisions = get_revisions(25, user) 
     1378 
     1379        return render(request, template, {'profile' : profile, 'usr': user, 'playlists': playlists, 
     1380                                          'user_revisions': user_revisions}) 
    13781381 
    13791382    def profile_edit(self, request, username, template='telemeta/profile_edit.html'): 
     
    14091412            profile_form = UserProfileForm(instance=profile, prefix='profile') 
    14101413            forms = [user_form, profile_form] 
    1411         return render(request, template, {'forms': forms, 'usr': user, 'user_hidden_fields': user_hidden_fields}) 
     1414        return render(request, template, {'forms': forms, 'usr': user, 
     1415                                'user_hidden_fields': user_hidden_fields}) 
    14121416 
    14131417 
Note: See TracChangeset for help on using the changeset viewer.