Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

history_view more useful if actions were reversed #77

Closed
dannyadair opened this issue Aug 11, 2011 · 5 comments
Closed

history_view more useful if actions were reversed #77

dannyadair opened this issue Aug 11, 2011 · 5 comments

Comments

@dannyadair
Copy link

VersionAdmin.history_view shows object history with the oldest revision first. I find that the newest at the top would be more intuitive, and also after a lot of changes scrolling is needed - a lot of times the most recent change(s) are of most interest.

@jernejcic
Copy link

I agree. At least allowing a settings to reverse the display in the admin would be nice.

@etianen
Copy link
Owner

etianen commented Aug 20, 2011

I've always said no to this enhancement before, since it means changing the way the admin screen works compared to the rest of Django.

However, too many people have been asking for this over the last couple of years for it to be ignored. Rather than simply reversing the order of actions, however, I think it might be time to add in some decent date-based filter controls and a search option to make finding old revisions actually useful!

@dannyadair
Copy link
Author

That sounds great, too!
An optional reversal is definitely a lot less work though - two lines?:
An attribute on VersionAdmin (history_latest_first = False) and then reversing the queryset for history_view if it is True would be simple and keep it optional (for those who don't mind changing the way the admin screen works).

@etianen
Copy link
Owner

etianen commented Sep 4, 2011

I've added in a history_latest_first option to the dev branch. This should be part of the 1.5 release that's scheduled to land tonight.

@etianen etianen closed this as completed Sep 4, 2011
@dannyadair
Copy link
Author

Awesome, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants