mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-13 05:06:42 +02:00
commit
d4ac8a767d
5
Makefile
5
Makefile
@ -78,8 +78,9 @@ readme:
|
|||||||
#: demo - Setup demo project using Python3.
|
#: demo - Setup demo project using Python3.
|
||||||
.PHONY: demo
|
.PHONY: demo
|
||||||
demo:
|
demo:
|
||||||
$(PIP) install -e . --user
|
# running it with and without --user flag because it started to be problematic for some setups
|
||||||
$(PIP) install -e demo --user
|
$(PIP) install -e . --user || $(PIP) install -e .
|
||||||
|
$(PIP) install -e demo --user || $(PIP) install -e demo
|
||||||
demodesk migrate --noinput
|
demodesk migrate --noinput
|
||||||
# Create superuser; user will be prompted to manually set a password
|
# Create superuser; user will be prompted to manually set a password
|
||||||
# When you get a prompt, enter a password of your choosing.
|
# When you get a prompt, enter a password of your choosing.
|
||||||
|
@ -38,7 +38,12 @@ INSTALLED_APPS = [
|
|||||||
'django.contrib.sites',
|
'django.contrib.sites',
|
||||||
'django.contrib.humanize',
|
'django.contrib.humanize',
|
||||||
'bootstrap4form',
|
'bootstrap4form',
|
||||||
'helpdesk'
|
|
||||||
|
'account', # Required by pinax-teams
|
||||||
|
'pinax.invitations', # required by pinax-teams
|
||||||
|
'pinax.teams', # team support
|
||||||
|
'helpdesk', # This is us!
|
||||||
|
'reversion', # required by pinax-teams
|
||||||
]
|
]
|
||||||
|
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
|
@ -97,7 +97,7 @@ class BaseCreateTicketView(abstract_views.AbstractCreateTicketMixin, FormView):
|
|||||||
# This submission is spam. Let's not save it.
|
# This submission is spam. Let's not save it.
|
||||||
return render(request, template_name='helpdesk/public_spam.html')
|
return render(request, template_name='helpdesk/public_spam.html')
|
||||||
else:
|
else:
|
||||||
ticket = form.save()
|
ticket = form.save(user=self.request.user if self.request.user.is_authenticated else None)
|
||||||
try:
|
try:
|
||||||
return HttpResponseRedirect('%s?ticket=%s&email=%s&key=%s' % (
|
return HttpResponseRedirect('%s?ticket=%s&email=%s&key=%s' % (
|
||||||
reverse('helpdesk:public_view'),
|
reverse('helpdesk:public_view'),
|
||||||
|
@ -12,4 +12,6 @@ pytz
|
|||||||
six
|
six
|
||||||
djangorestframework
|
djangorestframework
|
||||||
django-model-utils
|
django-model-utils
|
||||||
pinax-teams @ git+https://github.com/auto-mat/pinax-teams.git@slugify#egg=pinax-teams
|
|
||||||
|
# specific commit because the current release has no required library upgrade
|
||||||
|
pinax-teams @ git+https://github.com/pinax/pinax-teams.git@dd75e1c#egg=pinax-teams
|
||||||
|
Loading…
x
Reference in New Issue
Block a user