Photo
- Engine: SQL (Django model / relational table)
- App: reference
- Table/Collection:
reference_photo - Verbose name: photo
Photo(id, content_type, object_id, photo, path, tags, crop_width, crop_height, crop_x, crop_y)
| Field | Type | Column/Key | Null/Default | PK | Choices | Notes |
|---|---|---|---|---|---|---|
| id | AutoField | id | — | PK | — | — |
| content_type | ForeignKey → ContentType (FK) | content_type_id | — | — | — | |
| object_id | CharField | object_id | — | — | — | |
| photo | FileField | photo | null | — | 400x400 JPEG/JPG or SVG or PNG | |
| path | CharField | path | null | — | If you have a specific path you want the photo to store to. … | |
| tags | CharField | tags | null | — | Comma seperated list with words describing the image | |
| crop_width | FloatField | crop_width | null | — | width cropping value | |
| crop_height | FloatField | crop_height | null | — | height cropping value | |
| crop_x | FloatField | crop_x | null | — | x cropping value | |
| crop_y | FloatField | crop_y | null | — | y cropping value | |
| content_object | GenericForeignKey | — | — | — |
Field names link to their fuller explanation below.
Field details
Click a field name in the table above to jump to its explanation. Fields with no help text yet show a prompt, and are the ones to improve by adding a help_text on the model field, then regenerating.
id
- Engine: SQL
- Type:
AutoField - Column/Key:
id - primary key
No help text yet — add a help_text on the model field and regenerate to fill this in.
content_type
- Engine: SQL
- Type:
ForeignKey→ ContentType (FK) - Column/Key:
content_type_id
No help text yet — add a help_text on the model field and regenerate to fill this in.
object_id
- Engine: SQL
- Type:
CharField - Column/Key:
object_id
No help text yet — add a help_text on the model field and regenerate to fill this in.
photo
- Engine: SQL
- Type:
FileField - Column/Key:
photo - nullable
400x400 JPEG/JPG or SVG or PNG
path
- Engine: SQL
- Type:
CharField - Column/Key:
path - nullable
If you have a specific path you want the photo to store to. Otherwise it will default to /
tags
- Engine: SQL
- Type:
CharField - Column/Key:
tags - nullable
Comma seperated list with words describing the image
crop_width
- Engine: SQL
- Type:
FloatField - Column/Key:
crop_width - nullable
width cropping value
crop_height
- Engine: SQL
- Type:
FloatField - Column/Key:
crop_height - nullable
height cropping value
crop_x
- Engine: SQL
- Type:
FloatField - Column/Key:
crop_x - nullable
x cropping value
crop_y
- Engine: SQL
- Type:
FloatField - Column/Key:
crop_y - nullable
y cropping value
content_object
- Engine: SQL
- Type:
GenericForeignKey
No help text yet — add a help_text on the model field and regenerate to fill this in.
Generated by docs_models management command for SQL.