Skip to content
Snippets Groups Projects
Commit 047445d3 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Ensure that we don't mutate the underlying row object

parent e51ea694
No related branches found
No related tags found
No related merge requests found
import copy
from django import template
register = template.Library()
......@@ -5,5 +7,6 @@ register = template.Library()
@register.filter
def row_from_record(row, record):
row = copy.copy(row)
row._record = record
return row
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment