~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to django_messages_wl/views.py

  • Committer: franku
  • Date: 2018-05-07 07:50:32 UTC
  • mto: This revision was merged to the branch mainline in revision 496.
  • Revision ID: somal@arcor.de-20180507075032-a04ywdyq0isvwy6f
Use a specialized conf.py and css for the website, so the widelands-repo isn't modified

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
    if request.is_ajax():
16
16
        q = request.GET.get('term', '')
17
17
 
18
 
        usernames = User.objects.exclude(is_active=False).filter(username__icontains=q)
 
18
        usernames = User.objects.filter(username__icontains=q)
19
19
        results = []
20
20
        for user in usernames:
21
21
            name_json = {'value': user.username}