hovel / imagestore

Django gallery solution.
BSD 3-Clause "New" or "Revised" License
164 stars 72 forks source link

Meet requirements for referencing custom User model in Django 1.5 and 1.... #43

Closed sandino closed 9 years ago

sandino commented 9 years ago

Hello!

I have one more pull request for you project. This time I can't go forward because my custom User model requires explicit referencing. According to docs in order to reference User model as foreign key or signal sender we have to use AUTH_USER_MODEL setting.

Also, I removed strings

try:
    from django.contrib.auth import get_user_model
    User = get_user_model()
except ImportError:
    from django.contrib.auth.models import User

from both modules as User variable isn't used there anymore.

sandino commented 9 years ago

You're right, now check django version and leave User variable in place.

GeyseR commented 9 years ago

merged, thanks!