forked from DGNum/gestioCOF
Ajout d'un index sur Account.trigramme
En fait inutile car déjà créé du fait de la contrainte d'unicité
This commit is contained in:
parent
5b3613b6f6
commit
e9bbb35e66
2 changed files with 22 additions and 1 deletions
|
@ -21,7 +21,8 @@ class Account(models.Model):
|
|||
trigramme = models.CharField(
|
||||
unique = True,
|
||||
max_length = 3,
|
||||
validators = [RegexValidator(regex='^[^a-z]{3}$')])
|
||||
validators = [RegexValidator(regex='^[^a-z]{3}$')],
|
||||
db_index = True)
|
||||
balance = models.DecimalField(
|
||||
max_digits = 6, decimal_places = 2,
|
||||
default = 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue