{"issue":{"created_at":"2011-12-06T16:11:28Z","state":"open","updated_at":"2011-12-06T16:11:28Z","comments":0,"user":{"gravatar_id":"c3bee6ccd5638aa3ace0c8e4487006ad","id":1228777,"url":"https://api.github.com/users/SystemParadox","login":"SystemParadox","avatar_url":"https://secure.gravatar.com/avatar/c3bee6ccd5638aa3ace0c8e4487006ad?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Hi.\r\n\r\nI'm currently implementing a RevisionManager that will allow the 'before' revision to be saved, by hooking into pre_save instead of post_save. I would like to provide a way to link this manager to the default one (or any other 'normal' manager), so that they will share exactly the same model registration, to avoid having to add a duplicate call to register() my manager for every model.\r\n\r\nI currently have them sharing the same _registered_models dictionary, but this doesn't connect up the signals. I have a few ideas, but all of them have downsides:\r\n1. Change all models to call my register() method and pass that to the default manager (undesirable, I would like to avoid having to change the models if possible)\r\n2. Provide some sort of hook into RevisionManager.register() to call my register() method (where? Need to guarantee that no models have been registered)\r\n3. Wait until all models have been registered and then add signals in an iterator (where? Need to guarantee that all models have been registered)\r\n4. Replace default_revision_manager with some sort of stack that managers can be subscribed to?\r\n\r\nPlease share if you have any thoughts on how I should or shouldn't go about doing this.\r\n\r\nThanks.\r\nSimon","assignee":null,"id":2463946,"number":114,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Share model registration between multiple RevisionManagers","html_url":"https://github.com/etianen/django-reversion/issues/114","closed_at":null,"url":"https://api.github.com/repos/etianen/django-reversion/issues/114","milestone":null},"action":"opened"}