Browse Source

Changed shortname DH

Switched the shortname field's DH from Varchar to Regex
Quentin Bonaventure 8 years ago
parent
commit
94e7cf412a
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      lodelsites_em.py

+ 2
- 1
lodelsites_em.py View File

38
     display_text = 'lodelSiteShortName',
38
     display_text = 'lodelSiteShortName',
39
     help_text = 'Lodel site short string identifier',
39
     help_text = 'Lodel site short string identifier',
40
     group = base_group,
40
     group = base_group,
41
-    data_handler = 'varchar',
41
+    data_handler = 'regex',
42
     max_length = 5,
42
     max_length = 5,
43
+    regex = '^[0-9a-z_-]+$',
43
     uniq = True
44
     uniq = True
44
 )
45
 )
45
 
46
 

Loading…
Cancel
Save