-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add schema support for ArrayField
#72
Labels
enhancement
New feature or request
Comments
ghost
changed the title
[Feature request] Schema support for
Add schema support for Nov 7, 2022
ArrayField
ArrayField
I'll have to think about this. Meanwhile, you can override the schema using a custom form: # models.py
class MyModel(...):
my_array = ArrayField(...)
# forms.py
class MyModelForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
# Provide custom schema
self.fields['my_array'].widget.schema = {'type': 'array', ...}
# admin.py
class MyAdmin(admin.ModelAdmin):
form = MyModelForm
... |
I am @ghost |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like it's not implemented right now. Would love to have this supported. Thoughts?
The text was updated successfully, but these errors were encountered: