Skip to content

Commit

Permalink
Add extra undocumented field
Browse files Browse the repository at this point in the history
  • Loading branch information
AetherUnbound committed Apr 29, 2024
1 parent 192e028 commit 0179a3c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
6 changes: 5 additions & 1 deletion api/api/models/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ class AbstractMedia(
define one explicitly.
"""

watermarked = models.BooleanField(blank=True, null=True)
watermarked = models.BooleanField(
blank=True,
null=True,
help_text="Whether the media contains a watermark. Not currently leveraged.",
)

license = models.CharField(
max_length=50,
Expand Down
16 changes: 14 additions & 2 deletions documentation/meta/media_properties/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ value). Note that relation fields are always nullable.
| `updated_on` | [`DateTimeField`](https://docs.djangoproject.com/en/stable/ref/models/fields/#datetimefield) | `timestamp with time zone` | not null | |
| [`url`](#Audio-url-notes) | [`CharField`](https://docs.djangoproject.com/en/stable/ref/models/fields/#charfield) | `varchar(1000)` | unique | |
| [`view_count`](#Audio-view_count-notes) | [`IntegerField`](https://docs.djangoproject.com/en/stable/ref/models/fields/#integerfield) | `integer` | | `0` |
| `watermarked` | [`BooleanField`](https://docs.djangoproject.com/en/stable/ref/models/fields/#booleanfield) | `boolean` | | |
| [`watermarked`](#Audio-watermarked-notes) | [`BooleanField`](https://docs.djangoproject.com/en/stable/ref/models/fields/#booleanfield) | `boolean` | | |

### Notes

Expand Down Expand Up @@ -316,6 +316,12 @@ Note that only `name` and `accuracy` are presently surfaced in API results.

**Help text:** Vestigial field, purpose unknown.

(Audio-watermarked-notes)=

#### `watermarked`

**Help text:** Whether the media contains a watermark. Not currently leveraged.

## Image

### Relations
Expand Down Expand Up @@ -356,7 +362,7 @@ Note that only `name` and `accuracy` are presently surfaced in API results.
| `updated_on` | [`DateTimeField`](https://docs.djangoproject.com/en/stable/ref/models/fields/#datetimefield) | `timestamp with time zone` | not null | |
| [`url`](#Image-url-notes) | [`CharField`](https://docs.djangoproject.com/en/stable/ref/models/fields/#charfield) | `varchar(1000)` | unique | |
| [`view_count`](#Image-view_count-notes) | [`IntegerField`](https://docs.djangoproject.com/en/stable/ref/models/fields/#integerfield) | `integer` | | `0` |
| `watermarked` | [`BooleanField`](https://docs.djangoproject.com/en/stable/ref/models/fields/#booleanfield) | `boolean` | | |
| [`watermarked`](#Image-watermarked-notes) | [`BooleanField`](https://docs.djangoproject.com/en/stable/ref/models/fields/#booleanfield) | `boolean` | | |
| [`width`](#Image-width-notes) | [`IntegerField`](https://docs.djangoproject.com/en/stable/ref/models/fields/#integerfield) | `integer` | | |

### Notes
Expand Down Expand Up @@ -548,6 +554,12 @@ Note that only `name` and `accuracy` are presently surfaced in API results.

**Help text:** Vestigial field, purpose unknown.

(Image-watermarked-notes)=

#### `watermarked`

**Help text:** Whether the media contains a watermark. Not currently leveraged.

(Image-width-notes)=

#### `width`
Expand Down

0 comments on commit 0179a3c

Please sign in to comment.