Skip to content

Commit c73f725

Browse files
committed
(fix): typo f.ediable -> f.editable
- so if the `editable` kwarg were set to false it would probably just end up throwing a KeyError ooof :/ :/ - good thing it's not used often - wow trivial things like typos are kinda hard to catch without tests o.o
1 parent e48591e commit c73f725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_serializable_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def model_to_dict_custom(instance, fields=None, exclude=None, editable=True):
100100
data = {}
101101
for f in opts.fields:
102102
# skip uneditable fields if editable kwarg is False
103-
if not editable and not f.ediable:
103+
if not editable and not f.editable:
104104
continue
105105
# whitelisted fields only if fields kwarg is passed
106106
if fields and f.name not in fields:

0 commit comments

Comments
 (0)