Skip to content

Commit f2264ce

Browse files
GH-75: Noop: Fix consistent typo get_short_descritpion
I consistently misspelled local function name. I did not misspell model method of the same name. Co-authored-by: Ian Park <contact@duckonomy.com>
1 parent bb5a786 commit f2264ce

File tree

1 file changed

+4
-4
lines changed
  • taccsite_cms/contrib/taccsite_data_list

1 file changed

+4
-4
lines changed

taccsite_cms/contrib/taccsite_data_list/models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# Helpers
1515

16-
def get_short_descritpion(dict, value):
16+
def get_short_description(dict, value):
1717
"""Get layout class based on value."""
1818
return dict.get(value, {}).get('short_description')
1919

@@ -63,9 +63,9 @@ class TaccsiteDataList(CMSPlugin):
6363
attributes = fields.AttributesField()
6464

6565
def get_short_description(self):
66-
orientation = get_short_descritpion(ORIENTATION_DICT, self.orientation)
67-
type_style = get_short_descritpion(TYPE_STYLE_DICT, self.type_style)
68-
density = get_short_descritpion(DENSITY_DICT, self.density)
66+
orientation = get_short_description(ORIENTATION_DICT, self.orientation)
67+
type_style = get_short_description(TYPE_STYLE_DICT, self.type_style)
68+
density = get_short_description(DENSITY_DICT, self.density)
6969

7070
return density + ', ' + orientation + ' ' + type_style
7171

0 commit comments

Comments
 (0)