I have a group of versioned models that inherit from a concrete base model:
# MODELS
class Content(models.Model):
# fields...
pass
class Story(Content):
# more fields...
pass
class Video(Content):
# more fields...
pass
# ADMIN
class ContentAdmin(VersionAdmin):
model = Content
class StoryAdmin(ContentAdmin):
model = Story
class VideoAdmin(ContentAdmin):
model = Video
For half of my Story and Video objects, when I go to a revision view, all of the formfields are completely blank. It's happening whenever the parent Content's version has a higher pk than (i.e. was created after) the child's version. But when the child's version reverts before the parent's everything is fine. It looks like the ordering of versions on save/revert doesn't matter in the current code. Has anyone seen something like this before? Any suggestions for the best way around it? I looked at the pre_revision_commit signal but couldn't find an easy way to change the version order there.
python 2.7, Django 1.8, django-reversion==2.0.7
Thanks!