masschallenge/django-accelerator

View on GitHub
accelerator/models/industry_cluster.py

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
from sorl.thumbnail import ImageField
from django.db.models import (
    CharField,
    TextField,
    PositiveIntegerField,
)

from accelerator_abstract.models.accelerator_model import AcceleratorModel


class IndustryCluster(AcceleratorModel):
    name = CharField(max_length=255)
    description = TextField()
    image = ImageField(
        upload_to='industry_cluster_images',
        blank=True, null=True)
    display_priority = PositiveIntegerField()