389 | | if app_dict: |
390 | | app_dict['models'].append(model_dict), |
391 | | else: |
392 | | app_dict = { |
393 | | 'name': app_label.title(), |
394 | | 'app_url': '', |
395 | | 'has_module_perms': has_module_perms, |
396 | | 'models': [model_dict], |
397 | | } |
398 | | if not app_dict: |
399 | | raise http.Http404('The requested admin page does not exist.') |
| 389 | if app_dict: |
| 390 | app_dict['models'].append(model_dict), |
| 391 | else: |
| 392 | app_dict = { |
| 393 | 'name': app_label.title(), |
| 394 | 'app_url': '', |
| 395 | 'has_module_perms': has_module_perms, |
| 396 | 'models': [model_dict], |
| 397 | } |
| 398 | if not app_dict: |
| 399 | raise http.Http404('The requested admin page does not exist.') |