Changeset d082877 for telemeta/web/base.py
- Timestamp:
- 11/10/11 11:58:58 (19 months ago)
- Branches:
- master, crem, crem2, dev, dev2, diadems, forma, generic, instru_search, lam, nlivemulti, production, release/1.4.4, security, social, storage, test, video
- Children:
- d4c2dd3, 482c7bd
- Parents:
- 510ed41
- git-author:
- yomguy <yomguy@…> (11/10/11 11:58:58)
- git-committer:
- yomguy <yomguy@…> (11/10/11 11:58:58)
- File:
-
- 1 edited
-
telemeta/web/base.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
telemeta/web/base.py
r053e10f rd082877 344 344 def collection_detail(self, request, public_id, template='telemeta/collection_detail.html'): 345 345 collection = MediaCollection.objects.get(public_id=public_id) 346 items = collection.items.enriched() 347 items = items.order_by('code', 'old_code') 346 348 347 349 if collection.public_access == 'none' and not (request.user.is_staff or request.user.is_superuser): … … 355 357 collection.recorded_to_year) 356 358 playlists = get_playlists(request) 357 return render(request, template, {'collection': collection, 'playlists': playlists, 'public_access': public_access}) 359 360 return render(request, template, {'collection': collection, 'playlists': playlists, 'public_access': public_access, 'items': items}) 358 361 359 362 @method_decorator(permission_required('telemeta.change_mediacollection')) … … 441 444 pks = [] 442 445 items = MediaItem.objects.filter(collection=item.collection) 446 items = items.order_by('code', 'old_code') 447 443 448 if len(items) > 1: 444 449 for it in items: 445 450 pks.append(it.pk) 446 pks.sort()447 451 for pk in pks: 448 452 if pk == item.pk:
Note: See TracChangeset
for help on using the changeset viewer.
