File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ def get_urls(self):
34
34
admin_site = self .admin_site
35
35
opts = self .model ._meta
36
36
try :
37
- info = opts .app_label , opts .module_name
38
- except AttributeError :
39
37
info = opts .app_label , opts .model_name
38
+ except AttributeError :
39
+ info = opts .app_label , opts .module_name
40
40
history_urls = patterns (
41
41
"" ,
42
42
url ("^([^/]+)/history/([^/]+)/$" ,
Original file line number Diff line number Diff line change @@ -149,9 +149,9 @@ def revert_url(self):
149
149
"""URL for this change in the default admin site."""
150
150
opts = model ._meta
151
151
try :
152
- app_label , model_name = opts .app_label , opts .module_name
153
- except AttributeError :
154
152
app_label , model_name = opts .app_label , opts .model_name
153
+ except AttributeError :
154
+ app_label , model_name = opts .app_label , opts .module_name
155
155
return ('%s:%s_%s_simple_history' %
156
156
(admin .site .name , app_label , model_name ),
157
157
[getattr (self , opts .pk .attname ), self .history_id ])
You can’t perform that action at this time.
0 commit comments