Skip to content

Commit 95b0e90

Browse files
authored
Update views.py
1 parent 27ecbc7 commit 95b0e90

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

css_grid/views.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,24 @@
22
CSS Grid Template
33
"""
44

5+
56
class CSSGridMixin(object):
67
"""
78
A mixin for adding css grid to any standard CBV
89
"""
9-
10-
_prefix = 'css-grid'
10+
1111
grid_wrapper = None
1212
grid_template_columns = None
1313
grid_template_areas = None
1414
grid_gap = None
15-
1615

1716
def get_context_data(self, **kwargs):
1817
"""
1918
Insert the single object into the context dict.
2019
"""
21-
context = super(SingleObjectMixin, self).get_context_data(**context)
20+
context = super().get_context_data(**kwargs)
2221
context.update({
23-
self._prefix: {
22+
'css-grid': {
2423
'grid_wrapper': self.grid_wrapper,
2524
'grid-template-columns': self.grid_template_columns,
2625
'grid-template-areas': self.grid_template_areas,

0 commit comments

Comments
 (0)