[Django]-Show field_dict.items() of django-reversion in template

3👍

You’re passing the wrong thing into get_for_object – you need to pass the instance, function, not the model, Function.

1👍

Drop the parens and the Django template engine will do the calling for you:

{% for field_name, field_value in version.field_dict.items %}

This works for methods that take zero arguments.

Leave a comment