zapier / django-knowledge

Add a help desk or knowledge base to your Django project with only a few lines of boilerplate code.
http://github.com/zapier/django-knowledge
ISC License
486 stars 117 forks source link

Migrations fixed for 1.5 custom user model #50

Closed techdragon closed 11 years ago

techdragon commented 11 years ago

The migrations relied on auth.user. Added a couple of lines to knowledge.utils to lookup the custom user model. Ported/patched the migrations to use the new lookup variable so that they handle being run when there is only a custom user model.

bryanhelmig commented 11 years ago

Awesome! Thanks, I will merge it ASAP!

Bryan

On Jun 22, 2013, at 6:12 AM, techdragon notifications@github.com wrote:

The migrations relied on auth.user. Added a couple of lines to knowledge.utils to lookup the custom user model. Ported/patched the migrations to use the new lookup variable so that they handle being run when there is only a custom user model.

You can merge this Pull Request by running

git pull https://github.com/Jumpstartz/django-knowledge master Or view, comment on, or merge it at:

https://github.com/zapier/django-knowledge/pull/50

Commit Summary

utils for 1.5 compatibility in migrations converted initial migration to use custom user model update useing 1.5 compatibility fixes update using 1.5 compatibility fixes added settings import so that getattr works File Changes

M knowledge/migrations/0001_initial.py (13) M knowledge/migrations/0002_auto__add_field_question_alertadd_field_response_alert.py (9) M knowledge/migrations/0003_autoadd_unique_category_slug.py (9) M knowledge/utils.py (6) Patch Links:

https://github.com/zapier/django-knowledge/pull/50.patch https://github.com/zapier/django-knowledge/pull/50.diff