Skip to main content

Field

Django composes supports most of all built-in Django fields

Supported Fields

AutoField

BigAutoField

BigIntegerField

BinaryField

BooleanField

CharField

DateField

DateTimeField

DecimalField

DurationField

EmailField

FileField

FilePathField

FloatField

GenericIPAddressField

ImageField

IntegerField

JSONField

PositiveBigIntegerField

PositiveIntegerField

PositiveSmallIntegerField

SlugField

SmallAutoField

SmallIntegerField

TextField

TimeField

URLField

UUIDField

Relations Fields

ForeignKey

ManyToManyField

OneToOneField

Model names are expected to be unique across a specific app.

Adding fields to model

  1. Click the plus icon on a specific model

Add New Field Icon

  1. Enter the name of the field.
  2. Click on the field type to select your preferred field type.
  3. Click on the Add Field button.

Add New Field Icon

  1. Once the field is added, it should be listed among the field list on the specific model.

Add Relation Fields to model

  1. Drag a connection between your source model to the target model using the knob/handles located on the side of the model to form a relation.
    • The knob with the same color as the model header is the source knob.

Update field's properties

  1. From a specific model click on the specific field you wish to modify its properties.

View field's properties

  1. The properties drawer will be display, from which you can edit the properties of the selected field.
  2. Click the check button to save changes to the properties
  3. Click on the delete button to remove field from model.

field's properties drawer

CAN'T

You cannot delete a model with relation fields