Git Product home page Git Product logo

django_reversion_issue_tester's Introduction

Steps to recreate issues:

  1. Run ./runme.sh
    • Note that this script uses python3 to create a virtual environment (3.5+ is required)
  2. Access the admin interface from your browser on http://localhost:8000/admin
  3. Login as a super user (username: test, password: pass)
  4. Navigate to the Bar admin changelist page (http://localhost:8000/admin/app/bar/). Note that BarAdmin IS NOT a subclass of VersionAdmin.
  5. Change thing for one record and stuff for the other and click Save. image
  6. Observe that in the history page for the record that had thing changed, the action is listed as "Changed thing". Also observe that in the history for the record that had stuff changed, the action is listed as "Changed stuff". image image
  7. Navigate to the Foo admin changelist page (http://localhost:8000/admin/app/bar/). Note that FooAdmin IS a subclass of VersionAdmin.
  8. Repeat step 5, this time for the Foo records.
  9. (ISSUE #1) Observe that in the history pages for both records, the action is the same. image image
  10. From the Foo admin changelist page, make another set of changes that affects both records.
  11. From the history page of any one Foo record, revert to the previous set of changes (i.e. the version directly after the initial version).
  12. (ISSUE #2) From the changelist page, observe that both records have been reverted.
  13. (ISSUE #3) Observe that only one history page has been updated in spite of both records being affected. image image

Issues 2 and 3 may be resolved by updating the history of all records that are part of a revision or by ensuring that only one record is reverted.

Note: reverting to the initial version will affect a single record.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.