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 1
1
Changes
2
2
=======
3
3
4
- Unreleased
5
- -----------
4
+ 2.5.1 (2018-10-19)
5
+ ------------------
6
6
- Add `'+' ` as the `history_type ` for each instance in `bulk_history_create ` (gh-449)
7
7
- 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)
9
10
10
11
2.5.0 (2018-10-18)
11
12
------------------
Original file line number Diff line number Diff line change 1
1
[bumpversion]
2
- current_version = 2.5.0
2
+ current_version = 2.5.1
3
3
commit = True
4
4
tag = True
5
5
tag_name = {new_version}
Original file line number Diff line number Diff line change 1
1
from __future__ import unicode_literals
2
2
3
- __version__ = '2.5.0 '
3
+ __version__ = '2.5.1 '
4
4
5
5
6
6
def register (
Original file line number Diff line number Diff line change 8
8
from django .apps import apps
9
9
from django .conf import settings
10
10
from 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
13
12
from django .db .models import Q
14
13
from django .db .models .fields .proxy import OrderWrt
15
14
from django .urls import reverse
26
25
post_create_historical_record ,
27
26
)
28
27
29
- User = get_user_model ()
30
28
registered_models = {}
31
29
32
30
@@ -220,7 +218,9 @@ def copy_fields(self, model):
220
218
def get_extra_fields (self , model , fields ):
221
219
"""Return dict of extra fields added to the historical record model"""
222
220
223
- user_model = self .user_model or User
221
+ user_model = self .user_model or getattr (
222
+ settings , 'AUTH_USER_MODEL' , 'auth.User'
223
+ )
224
224
225
225
def revert_url (self ):
226
226
"""URL for this change in the default admin site."""
You can’t perform that action at this time.
0 commit comments