Browse Source

classtype: use the same naming pattern for *_id fields

ArnAud 9 years ago
parent
commit
a4dacc654a
2 changed files with 8 additions and 8 deletions
  1. 2
    2
      EditorialModel/classtypes.py
  2. 6
    6
      EditorialModel/test/me.json

+ 2
- 2
EditorialModel/classtypes.py View File

@@ -6,11 +6,11 @@ common_fields = {
6 6
         'fieldtype': 'pk',
7 7
         'internal': 'automatic',
8 8
     },
9
-    'classid': {
9
+    'class_id': {
10 10
         'fieldtype': 'integer',
11 11
         'internal': 'automatic',
12 12
     },
13
-    'typeid': {
13
+    'type_id': {
14 14
         'fieldtype': 'integer',
15 15
         'internal': 'automatic',
16 16
     },

+ 6
- 6
EditorialModel/test/me.json View File

@@ -331,7 +331,7 @@
331 331
   "nullable": false,
332 332
   "fieldtype": "integer",
333 333
   "uniq": false,
334
-  "name": "classid",
334
+  "name": "class_id",
335 335
   "internal": "automatic",
336 336
   "component": "EmField"
337 337
  },
@@ -366,7 +366,7 @@
366 366
   "nullable": false,
367 367
   "fieldtype": "integer",
368 368
   "uniq": false,
369
-  "name": "typeid",
369
+  "name": "type_id",
370 370
   "internal": "automatic",
371 371
   "component": "EmField"
372 372
  },
@@ -410,7 +410,7 @@
410 410
   "nullable": false,
411 411
   "fieldtype": "integer",
412 412
   "uniq": false,
413
-  "name": "classid",
413
+  "name": "class_id",
414 414
   "internal": "automatic",
415 415
   "component": "EmField"
416 416
  },
@@ -445,7 +445,7 @@
445 445
   "nullable": false,
446 446
   "fieldtype": "integer",
447 447
   "uniq": false,
448
-  "name": "typeid",
448
+  "name": "type_id",
449 449
   "internal": "automatic",
450 450
   "component": "EmField"
451 451
  },
@@ -489,7 +489,7 @@
489 489
   "nullable": false,
490 490
   "fieldtype": "integer",
491 491
   "uniq": false,
492
-  "name": "classid",
492
+  "name": "class_id",
493 493
   "internal": "automatic",
494 494
   "component": "EmField"
495 495
  },
@@ -524,7 +524,7 @@
524 524
   "nullable": false,
525 525
   "fieldtype": "integer",
526 526
   "uniq": false,
527
-  "name": "typeid",
527
+  "name": "type_id",
528 528
   "internal": "automatic",
529 529
   "component": "EmField"
530 530
  },

Loading…
Cancel
Save