-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use model meta to generate verbose name
Render field names of object rather than the word "None" This is fix for issue #53, since an object may not exist when rendering `templates/admin/change_data.html` - ie, if we're greating a new object when `confirm_add = True` is set on a `ModelAdmin` with the `AdminConfirmMixin`. Also makes sure we send an actual object (not the string "None") to the base template, to remove other instances of the word "None" from the add view.
- Loading branch information
Showing
3 changed files
with
5 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters