Main page panels are now draggable and droppable (issue #160), but a model is very simple. It has only two dicts, one is for collapsed status and the second one is for order. It would be better, if we have more semantic model.
For example, something like that:
class PanelState(mongoengine.EmbeddedDocument):
collapsed = mongoengine.BooleanField()
column = mongoengine.IntField()
order = mongoengine.IntField()
class Panel(mongoengine.EmbeddedDocument):
layout = mongoengine.MapField(mongoengine.EmbeddedDocumentField(PanelState))
class User(auth.User):
panels = mongoengine.MapField(mongoengine.EmbeddedDocumentField(Panel))
You can also define a different model, if you wan't.
Main page panels are now draggable and droppable (issue #160), but a model is very simple. It has only two dicts, one is for collapsed status and the second one is for order. It would be better, if we have more semantic model.
For example, something like that:
You can also define a different model, if you wan't.