Updated patch is attached with the renamed field.
Rather than use annotate(...), it defines a separate function to convert the Version model into a dict for serialization. That way the numtree function can be used for the major version (i.e. for 10.0 => 10). I think it ends up being cleaner anyway as all the fields in the resulting JSON are listed in one place.
Thanks for updating the sample data. New output is now:
[
{
"current": false,
"eoldate": "2003-03-01",
"latestMinor": "2",
"major": "6.3",
"reldate": "1998-02-23",
"supported": false
},
{
"current": false,
"eoldate": "2003-10-30",
"latestMinor": "2",
"major": "6.4",
"reldate": "1999-01-03",
"supported": false
},
// ... truncated ...
{
"current": true,
"eoldate": "2025-11-13",
"latestMinor": "2",
"major": "13",
"reldate": "2021-02-11",
"supported": true
}
]
Regards,
-- Sehrope Sarkuni