mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-16 22:20:24 +00:00
Design documenting
This commit is contained in:
parent
7ca17936f1
commit
bbfc8ebe36
2 changed files with 17 additions and 1 deletions
|
|
@ -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
17
docs/design.rst
Normal 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
|
||||
Loading…
Reference in a new issue