peeyush-tm / django-cube

Automatically exported from code.google.com/p/django-cube
GNU General Public License v3.0
1 stars 0 forks source link

Allowing Cube factory like Django's 'ModelForm' for simplifying writing new cubes without having to declare all dimensions #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
For purely generic cube class creation :

>>> cube_factory(model=AModel)

For overriding some dimensions (in a ModelForm fashion):

>>> class MyCube(Cube):
... 
...     overriden_dimension = Dimension(field='field_to_override')
...
...     class Meta:
...         model = AModel

This would avoid having to redeclare each time all the dimensions.

Original issue reported on code.google.com by seb...@gmail.com on 26 Jul 2010 at 3:34