File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 11Changes
22=======
33
4- Unreleased
5- -----------
4+ 2.5.1 (2018-10-19)
5+ ------------------
66- Add `'+' ` as the `history_type ` for each instance in `bulk_history_create ` (gh-449)
77- Add support for `history_change_reason ` for each instance in `bulk_history_create ` (gh-449)
8- - Add `history_change_reason ` in the history list view under the `Change reason ` display name
8+ - Add `history_change_reason ` in the history list view under the `Change reason ` display name (gh-458)
9+ - Fix bug that caused failures when using a custom user model (gh-459)
910
10112.5.0 (2018-10-18)
1112------------------
Original file line number Diff line number Diff line change 11[bumpversion]
2- current_version = 2.5.0
2+ current_version = 2.5.1
33commit = True
44tag = True
55tag_name = {new_version}
Original file line number Diff line number Diff line change 11from __future__ import unicode_literals
22
3- __version__ = '2.5.0 '
3+ __version__ = '2.5.1 '
44
55
66def register (
Original file line number Diff line number Diff line change 88from django .apps import apps
99from django .conf import settings
1010from django .contrib import admin
11- from django .contrib .auth import get_user_model
12- from django .db import models , router
11+ from django .db import models
1312from django .db .models import Q
1413from django .db .models .fields .proxy import OrderWrt
1514from django .urls import reverse
2625 post_create_historical_record ,
2726)
2827
29- User = get_user_model ()
3028registered_models = {}
3129
3230
@@ -220,7 +218,9 @@ def copy_fields(self, model):
220218 def get_extra_fields (self , model , fields ):
221219 """Return dict of extra fields added to the historical record model"""
222220
223- user_model = self .user_model or User
221+ user_model = self .user_model or getattr (
222+ settings , 'AUTH_USER_MODEL' , 'auth.User'
223+ )
224224
225225 def revert_url (self ):
226226 """URL for this change in the default admin site."""
You can’t perform that action at this time.
0 commit comments