Skip to content

Commit b754b89

Browse files
authored
Update views.py
1 parent 0e452c7 commit b754b89

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

css-grid/views.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ def get_context_data(self, **kwargs):
2020
"""
2121
context = super(SingleObjectMixin, self).get_context_data(**context)
2222
context.update({
23-
'grid_wrapper': self._prefix + self.grid_wrapper,
24-
'grid-template-columns': self._prefix + self.grid_template_columns,
25-
'grid-template-areas': self._prefix + self.grid_template_areas,
26-
'grid-gap': self._prefix + self.grid_gap
23+
self._prefix: {
24+
'grid_wrapper': self.grid_wrapper,
25+
'grid-template-columns': self.grid_template_columns,
26+
'grid-template-areas': self.grid_template_areas,
27+
'grid-gap': self.grid_gap
28+
}
2729
})
2830
return context

0 commit comments

Comments
 (0)