Commit 0eea5226e6aa94fd71bc4ee7fe282b3d66919cde

Authored by janek37
1 parent 63472086

filtrowanie odsyłaczy wg widocznych słowników

dictionary/ajax_lexeme_view.py
... ... @@ -163,7 +163,8 @@ def lexeme_edit_form(request, id):
163 163 prefix='lip' + str(lip.pk), user=request.user, editable=editable),
164 164 lip.qualifiers.filter(vocabulary=owner) if ro_owner else [])
165 165 for lip in lips]
166   - crs = l.refs_to.order_by('type__index')
  166 + crs = l.refs_to.order_by('type__index').filter(
  167 + to_lexeme__vocabularies=visible_qualifiers(request.user))
167 168 to_return['cross_references'] = crs
168 169 return to_return
169 170  
... ...