mirror of
https://github.com/kristoferssolo/FOSSDB.git
synced 2025-10-21 17:50:35 +00:00
Make License.short_name and License.full_name unique
This commit is contained in:
parent
8a729b9c8c
commit
37aa419855
@ -2,10 +2,10 @@ from django.db import models
|
|||||||
|
|
||||||
|
|
||||||
class License(models.Model):
|
class License(models.Model):
|
||||||
short_name = models.CharField(max_length=50)
|
short_name = models.CharField(max_length=50, unique=True)
|
||||||
full_name = models.CharField(max_length=100, blank=True, default="")
|
full_name = models.CharField(max_length=100, unique=True)
|
||||||
url = models.URLField(blank=True, default="")
|
url = models.URLField(blank=True, default="")
|
||||||
description = models.TextField(blank=True, default="")
|
text = models.TextField(blank=True, default="")
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.short_name
|
return self.short_name
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user