noc.main.models.mimetype

Module Contents

class noc.main.models.mimetype.MIMEType

Bases: noc.core.model.base.NOCModel

MIME Type mapping

class Meta

Bases: object

app_label = main
db_table = main_mimetype
verbose_name = MIME Type
verbose_name_plural = MIME Types
ordering = ['extension']
extension
mime_type
__str__(self)
classmethod get_mime_type(cls, filename)

Determine MIME type from filename