postgres.forms.HStoreField

class HStoreField [source]

A field which accepts JSON encoded data for an HStoreField. It will cast all the values to strings. It is represented by an HTML <textarea>.

User friendly forms

HStoreField is not particularly user friendly in most cases, however it is a useful way to format data from a client-side widget for submission to the server.

Note

On occasions it may be useful to require or restrict the keys which are valid for a given field. This can be done using the KeysValidator.

doc_Django
2016-10-09 18:39:19
Comments
Leave a Comment

Please login to continue.