Refs #339 Readonly fields get displayed incorrectly in History view

Instead of passing the Version parameters as initial, override them in the object itself
Here's a thought. Currently, read only fields in related objects via admin inlines won't work.

Is there any way to extend this patch to work with related objects via admin inlines?

> On 19 Aug 2014, at 16:19, Diego Gaustein <notifications@github.com> wrote:
> 
> In src/reversion/admin.py:
> 
> > @@ -323,7 +323,12 @@ def render_revision_form(self, request, obj, version, context, revert=False, rec
> >              # change_view.  Once again, a hook for this kind of functionality
> >              # would be nice.  Unfortunately, it results in doubling the number
> >              # of queries required to construct the formets.
> > -            form = ModelForm(instance=obj, initial=self.get_revision_form_data(request, obj, version))
> > +            initial = self.get_revision_form_data(request, obj, version)
> > +            for key, value in initial.items():
> > +                field = model._meta.get_field(key)
> > +                setattr(obj, field.attname, value)
> Sure thing. I have checked the PR associated with #170, and while this is doing something different, I don't understand entirely what the bug caused was, so better be safe, cheers.
> 
> —
> Reply to this email directly or view it on GitHub.