# Django Models `Unicorn` provides tight integration with Django `Models` and `QuerySets` to handle typical workflows. ## Model A Django `Model` can be used as a field on a component just like basic Python primitive types. Use `unicorn:model` to bind to a field of a Django `Model` like you would in a normal Django template. :::{warning} Using this functionality will serialize your entire model by default and expose all of the values in the HTML source code. Do not use this particular functionality if there are properties that need to be kept private. One option is to customize the serialization of the model into a dictionary to only expose the data that should be publicly available. Another option is to use [Meta.exclude](views.md#exclude) or [Meta.javascript_exclude](views.md#javascript_exclude) so those fields are not exposed. ::: :::{code} html :force: true