resources.type
This commit is contained in:
parent
7526774a62
commit
dcc5b2b4ab
|
@ -227,7 +227,14 @@ class PersonResource(models.Model):
|
||||||
|
|
||||||
|
|
||||||
class Resources(models.Model):
|
class Resources(models.Model):
|
||||||
type = models.IntegerField()
|
|
||||||
|
TYPE_CHOICES = (
|
||||||
|
(1, "Resources"),
|
||||||
|
(2, "Images"),
|
||||||
|
(3, "Links"),
|
||||||
|
)
|
||||||
|
|
||||||
|
type = models.IntegerField(choices=TYPE_CHOICES)
|
||||||
href = models.CharField(max_length=255)
|
href = models.CharField(max_length=255)
|
||||||
description = models.TextField(blank=True, null=True)
|
description = models.TextField(blank=True, null=True)
|
||||||
mime = models.CharField(max_length=10, blank=True, null=True)
|
mime = models.CharField(max_length=10, blank=True, null=True)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user