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):
3434 admin_site = self .admin_site
3535 opts = self .model ._meta
3636 try :
37- info = opts .app_label , opts .module_name
38- except AttributeError :
3937 info = opts .app_label , opts .model_name
38+ except AttributeError :
39+ info = opts .app_label , opts .module_name
4040 history_urls = patterns (
4141 "" ,
4242 url ("^([^/]+)/history/([^/]+)/$" ,
Original file line number Diff line number Diff line change @@ -149,9 +149,9 @@ def revert_url(self):
149149 """URL for this change in the default admin site."""
150150 opts = model ._meta
151151 try :
152- app_label , model_name = opts .app_label , opts .module_name
153- except AttributeError :
154152 app_label , model_name = opts .app_label , opts .model_name
153+ except AttributeError :
154+ app_label , model_name = opts .app_label , opts .module_name
155155 return ('%s:%s_%s_simple_history' %
156156 (admin .site .name , app_label , model_name ),
157157 [getattr (self , opts .pk .attname ), self .history_id ])
You can’t perform that action at this time.
0 commit comments