Skip to content

Instantly share code, notes, and snippets.

@AlanCoding
Created March 22, 2018 11:43
Show Gist options
  • Save AlanCoding/8ec7a6ec4d390362895957d179bfcb68 to your computer and use it in GitHub Desktop.
Save AlanCoding/8ec7a6ec4d390362895957d179bfcb68 to your computer and use it in GitHub Desktop.
In [15]: [e for e in inv.groups.values_list('id', 'total_groups').order_by('tota
...: l_groups')]
Out[15]:
[(1405, 0),
(1410, 1),
(1411, 2),
(1412, 3),
(1413, 4),
(1414, 5),
(1415, 6),
(1416, 7),
(1417, 8),
(1406, 9),
(1407, 10),
(1408, 11),
(1409, 12),
(1418, 13),
(1419, 14),
(1420, 15),
(1421, 16),
(1422, 17),
(1423, 18),
(1435, 19),
(1436, 20),
(1437, 21),
(1438, 22),
(1439, 23),
(1440, 24),
(1441, 25),
(1442, 26),
(1443, 27),
(1444, 28),
(1445, 29),
(1446, 30),
(1447, 31),
(1448, 32),
(1449, 33),
(1450, 34),
(1451, 35),
(1452, 36),
(1453, 37),
(1454, 38),
(1455, 39),
(1456, 40),
(1457, 41),
(1458, 42),
(1459, 43),
(1460, 44),
(1461, 45),
(1462, 46),
(1463, 47),
(1464, 48),
(1465, 49),
(1466, 50),
(1467, 51),
(1468, 52),
(1469, 53),
(1470, 54),
(1471, 55),
(1472, 56),
(1473, 57),
(1474, 58),
(1475, 59),
(1476, 60),
(1477, 61),
(1519, 62),
(1520, 63),
(1521, 64),
(1522, 65),
(1523, 66),
(1524, 67),
(1525, 68),
(1526, 69),
(1527, 70),
(1528, 71),
(1529, 72),
(1530, 73),
(1531, 74),
(1532, 75),
(1533, 76),
(1534, 77),
(1535, 78),
(1536, 79),
(1537, 80),
(1538, 81),
(1539, 82),
(1540, 83),
(1541, 84),
(1542, 85),
(1543, 86),
(1544, 87),
(1545, 88),
(1546, 89),
(1547, 90),
(1548, 91),
(1549, 92),
(1550, 93),
(1551, 94),
(1552, 95),
(1553, 96),
(1554, 97),
(1555, 98),
(1478, 99),
(1479, 100),
(1480, 101),
(1481, 102),
(1482, 103),
(1483, 104),
(1484, 105),
(1485, 106),
(1486, 107),
(1487, 108),
(1488, 109),
(1489, 110),
(1490, 111),
(1491, 112),
(1492, 113),
(1493, 114),
(1494, 115),
(1495, 116),
(1496, 117),
(1497, 118),
(1498, 119),
(1499, 120),
(1500, 121),
(1501, 122),
(1502, 123),
(1503, 124),
(1504, 125),
(1505, 126),
(1506, 127),
(1507, 128),
(1508, 129),
(1509, 130),
(1510, 131),
(1511, 132),
(1512, 133),
(1513, 134),
(1514, 135),
(1515, 136),
(1516, 137),
(1517, 138),
(1518, 139)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment