mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-01-06 14:09:45 +01:00
Custom User model changes.
This commit is contained in:
parent
dc7eb28ee8
commit
978c0665b8
@ -160,11 +160,11 @@ urlpatterns += patterns('helpdesk.views.public',
|
||||
)
|
||||
|
||||
urlpatterns += patterns('',
|
||||
url(r'^rss/user/(?P<user_name>[\.\@A-Za-z0-9_-]+)/$',
|
||||
url(r'^rss/user/(?P<user_name>[^/]+)/$',
|
||||
login_required(feeds.OpenTicketsByUser()),
|
||||
name='helpdesk_rss_user'),
|
||||
|
||||
url(r'^rss/user/(?P<user_name>[\.\@A-Za-z0-9_-]+)/(?P<queue_slug>[A-Za-z0-9_-]+)/$',
|
||||
|
||||
url(r'^rss/user/(?P<user_name>[^/]+)/(?P<queue_slug>[A-Za-z0-9_-]+)/$',
|
||||
login_required(feeds.OpenTicketsByUser()),
|
||||
name='helpdesk_rss_user_queue'),
|
||||
|
||||
|
@ -237,9 +237,9 @@ def view_ticket(request, ticket_id):
|
||||
return update_ticket(request, ticket_id)
|
||||
|
||||
if helpdesk_settings.HELPDESK_STAFF_ONLY_TICKET_OWNERS:
|
||||
users = User.objects.filter(is_active=True, is_staff=True).order_by('username')
|
||||
users = User.objects.filter(is_active=True, is_staff=True).order_by(User.USERNAME_FIELD)
|
||||
else:
|
||||
users = User.objects.filter(is_active=True).order_by('username')
|
||||
users = User.objects.filter(is_active=True).order_by(User.USERNAME_FIELD)
|
||||
|
||||
|
||||
# TODO: shouldn't this template get a form to begin with?
|
||||
|
Loading…
Reference in New Issue
Block a user