mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-13 02:10:49 +01:00
Add Django 1.4 support - remove old feeds import (no longer required) and add Timezone support. Fixes #135.
This commit is contained in:
parent
1a8fa1e885
commit
9f0e07f5e6
@ -10,12 +10,10 @@ urls.py - Mapping of URL's to our various views. Note we always used NAMED
|
|||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.conf.urls.defaults import *
|
from django.conf.urls.defaults import *
|
||||||
from django.contrib.auth.decorators import login_required
|
from django.contrib.auth.decorators import login_required
|
||||||
from django.contrib.syndication.views import feed as django_feed
|
|
||||||
|
|
||||||
from helpdesk import settings as helpdesk_settings
|
from helpdesk import settings as helpdesk_settings
|
||||||
from helpdesk.views import feeds
|
from helpdesk.views import feeds
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = patterns('helpdesk.views.staff',
|
urlpatterns = patterns('helpdesk.views.staff',
|
||||||
url(r'^dashboard/$',
|
url(r'^dashboard/$',
|
||||||
'dashboard',
|
'dashboard',
|
||||||
|
@ -257,7 +257,11 @@ def update_ticket(request, ticket_id, public=False):
|
|||||||
if not (due_date_year and due_date_month and due_date_day):
|
if not (due_date_year and due_date_month and due_date_day):
|
||||||
due_date = ticket.due_date
|
due_date = ticket.due_date
|
||||||
else:
|
else:
|
||||||
due_date = datetime(due_date_year, due_date_month, due_date_day)
|
if ticket.due_date:
|
||||||
|
due_date = ticket.due_date
|
||||||
|
else:
|
||||||
|
due_date = datetime.now()
|
||||||
|
due_date = due_date.replace(due_date_year, due_date_month, due_date_day)
|
||||||
tags = request.POST.get('tags', '')
|
tags = request.POST.get('tags', '')
|
||||||
|
|
||||||
# We need to allow the 'ticket' and 'queue' contexts to be applied to the
|
# We need to allow the 'ticket' and 'queue' contexts to be applied to the
|
||||||
|
Loading…
Reference in New Issue
Block a user