url url() for the collections link
This commit is contained in:
Родитель
9b96e20e7f
Коммит
55eca7e195
|
@ -99,8 +99,7 @@
|
|||
<div class="secondary collections-sidebar">
|
||||
<img alt="" width="100" height="125"
|
||||
src="{{ MEDIA_URL }}img/amo2009/illustrations/logo-collections-100x125.png">
|
||||
{# TODO(jbalogh): reverse #}
|
||||
<h3><a href="{{ remora_url('/collections') }}">{{ _('Collections', 'addons_home_collections') }}</a></h3>
|
||||
<h3><a href="{{ url('collections.list') }}">{{ _('Collections', 'addons_home_collections') }}</a></h3>
|
||||
<p>
|
||||
{% trans %}
|
||||
Collections are groups of related add-ons that anyone can create and share.
|
||||
|
|
|
@ -34,7 +34,6 @@ def migrate_collection_users():
|
|||
task_log.info('Fixing users for %s collections.' % len(collections))
|
||||
for collection in collections:
|
||||
users = (collection.collectionuser_set
|
||||
.filter(role=amo.COLLECTION_ROLE_ADMIN)
|
||||
.order_by('id'))
|
||||
if users:
|
||||
collection.author_id = users[0].user_id
|
||||
|
|
Загрузка…
Ссылка в новой задаче