Design documenting

This commit is contained in:
Daniel Greenfeld 2013-05-18 13:45:31 +02:00
parent 7ca17936f1
commit bbfc8ebe36
2 changed files with 17 additions and 1 deletions

View file

@ -9,7 +9,6 @@ class AppStore(object):
for key in module.__dict__.keys():
model_candidate = getattr(module, key)
if hasattr(model_candidate, 'admin2'):
print model_candidate
self.add_model(model_candidate)
def add_model(self, model):

17
docs/design.rst Normal file
View file

@ -0,0 +1,17 @@
======
Design
======
Workflow
-----------
*. Apps
*. Apps.models
*. AdminObj
*. Appstore
1. Instantiate Appstore
2. Loop through the Apps then models per App
3. Admin2s are created from models: djadmin2.models.register(Poll)
4. Admin2s contain methods/properties necessaey for UI
5. Views