20 lines
302 B
Python
20 lines
302 B
Python
from django.db import models
|
|
|
|
from apps.map.models import CaseStudy, CaseStudyDraft
|
|
|
|
|
|
class BaseFile(models.Model):
|
|
file = models.FileField(
|
|
upload_to='.',
|
|
)
|
|
|
|
class Meta:
|
|
abstract = True
|
|
|
|
def __str__(self):
|
|
return self.file.name
|
|
|
|
|
|
class File(BaseFile):
|
|
pass
|