Matrix-type Django admin for two-dimensional data -
suppose have two-dimensional data model:
class a(models.model): name = models.charfield() # ... more metadata class b(models.model): name = models.charfield() # ... more metadata class value(models.model): = models.foreignkey(a) b = models.foreignkey(b) value = models.integerfield()
so normalized version of matrix of data:
| a1 | a2 | a3 | a4 ----------------------- b1 | 5 | 9 | 2 | 1 b2 | 8 | 3 | 3 | 8 b3 | 4 | 9 | 5 | 7 b4 | 2 | 6 | 2 | 7
is there way present matrix in django admin, such can edited in case many values in matrix need updated simultaneously?
Comments
Post a Comment