Skip to content

Commit

Permalink
Fix some docs and migrations in prep for 0.3 release, see #878
Browse files Browse the repository at this point in the history
  • Loading branch information
gwasser committed Aug 20, 2021
1 parent 8a40cee commit 1559333
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 9 deletions.
3 changes: 1 addition & 2 deletions demo/demodesk/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@
'django.contrib.sites',
'django.contrib.humanize',
'bootstrap4form',

'account', # Required by pinax-teams
'pinax.invitations', # required by pinax-teams
'pinax.teams', # team support
'helpdesk', # This is us!
'reversion', # required by pinax-teams
'helpdesk', # This is us!
]

MIDDLEWARE = [
Expand Down
7 changes: 1 addition & 6 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Contents
:glob:

install
upgrade
configuration
settings
spam
Expand Down Expand Up @@ -68,10 +69,4 @@ Licensing
---------
django-helpdesk is released under the BSD license, however it packages 3rd party applications which may be using a different license. More details can be found in the :doc:`license` documentation.

Dependencies
------------

1. Python 3.4+ (or 2.7, but deprecated and support will be removed next release)
2. Django 1.11 or newer
3. An existing **working** Django project with database etc. If you cannot log into the Admin, you won't get this product working! This means you **must** run `migrate` **before** you add ``helpdesk`` to your ``INSTALLED_APPS``.

2 changes: 1 addition & 1 deletion docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ errors with trying to create User settings.
'account', # Required by pinax-teams
'pinax.invitations', # required by pinax-teams
'pinax.teams', # team support
'helpdesk', # This is us!
'reversion', # required by pinax-teams
'helpdesk', # This is us!
)

Note: you do not need to use pinax-teams. To dissable teams see the :doc:`teams` section.
Expand Down
29 changes: 29 additions & 0 deletions docs/upgrade.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Upgrading
=========

Your ``django-helpdesk`` installation can be upgraded to the latest version using the release notes below.


Prerequisites
-------------

Please consult the Installation instructions for general instructions and tips.
The tips below are based on modifications of the original installation instructions.


0.2 -> 0.3
----------

- Under `INSTALLED_APPS`, `bootstrapform` needs to be replaced with `bootstrap4form`

- Unless turning off `pinax_teams`, need to add the following to `INSTALLED_APPS` for `pinax_teams`:
```
"account",
"pinax.invitations",
"pinax.teams",
"reversion",
```

- If using `send_templated_mail`, then it now needs to be imported from `helpdesk.templated_email`


19 changes: 19 additions & 0 deletions helpdesk/migrations/0035_alter_email_on_ticket_change.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 3.1.13 on 2021-08-18 14:30

from django.db import migrations, models
import helpdesk.models


class Migration(migrations.Migration):

dependencies = [
('helpdesk', '0034_create_email_template_for_merged'),
]

operations = [
migrations.AlterField(
model_name='usersettings',
name='email_on_ticket_change',
field=models.BooleanField(default=helpdesk.models.email_on_ticket_change_default, help_text="If you're the ticket owner and the ticket is changed via the web by somebody else,do you want to receive an e-mail?", verbose_name='E-mail me on ticket change?'),
),
]
14 changes: 14 additions & 0 deletions requirements-no-pinax.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Django>=2.2,<4
django-bootstrap4-form
celery
django-celery-beat
email-reply-parser
akismet
markdown
beautifulsoup4
lxml
simplejson
pytz
six
djangorestframework
django-model-utils
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ lxml
simplejson
pytz
six
pinax_teams
djangorestframework
django-model-utils

0 comments on commit 1559333

Please sign in to comment.