Fields¶
-
class
brink.fields.
Field
(pk=False, required=False, hidden=False)[source]¶ Field base class. All other fields inherit from this class, so usually you want to use one of the more specialized fields. However, there might be cases where you wanna store an arbitrary value that does not fit well into any other standard field, and in that case you could use Field to store any value.
-
show
(data)[source]¶ All field values will be passed through this method before being rendered as json. Thus you can perform any desired modifications to the final output here.
-
Types¶
-
class
brink.fields.
CharField
(*args, *, min_length=0, max_length=9223372036854775807, **kwargs)[source]¶ CharField holds a char sequence.