Aller au contenu

Schemas

SimpleUserSchema

Bases: ModelSchema

A schema with the minimum amount of information to represent a user.

UserProfileSchema

Bases: ModelSchema

The necessary information to show a user profile

Album

Bases: SasFile

NAME_MAX_LENGTH: int = 50 class-attribute

Maximum length of an album's name.

SithFile have a maximum length of 256 characters. However, this limit is too high for albums. Names longer than 50 characters are harder to read and harder to display on the SAS page.

It is to be noted, though, that this does not add or modify any db behaviour. It's just a constant to be used in views and forms.

Picture

Bases: SasFile

PictureModerationRequest

Bases: Model

A request to remove a Picture from the SAS.

AlbumSchema

Bases: ModelSchema

PictureFilterSchema

Bases: FilterSchema

PictureSchema

Bases: ModelSchema

PictureRelationCreationSchema

Bases: Schema

IdentifiedUserSchema

Bases: Schema

ModerationRequestSchema

Bases: ModelSchema