Skip to content

Commit

Permalink
ms-business-central_release_test1
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuushhh committed Jun 12, 2024
1 parent 7242c2d commit aea9f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ms_business_central_api/models/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class StringOptionsField(models.CharField):
description = "Custom String Field with Options"

def __init__(self, *args, **kwargs):
choices = kwargs.pop('choices', []) # Retrieve choices from kwargs
choices = kwargs.pop('choices', []) # Retrieve choices from kwarg
max_length = kwargs.pop('max_length', 255) # Retrieve max_length from kwargs
default = kwargs.pop('default', '') # Retrieve default value from kwargs
kwargs['help_text'] = kwargs.get('help_text', 'string field with options')
Expand Down

0 comments on commit aea9f26

Please sign in to comment.