mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 18:21:03 -03:30
Add organizations resource file, update TODO & gitignore
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,4 +1,5 @@
|
|||||||
lib/settings.py
|
lib/settings/local_settings.py
|
||||||
|
lib/acom.sqlite3
|
||||||
env/*
|
env/*
|
||||||
*.py[c,o]
|
*.py[c,o]
|
||||||
*.swp
|
*.swp
|
||||||
|
|||||||
7
TODO.md
7
TODO.md
@@ -5,10 +5,15 @@ TODO items for ansible commander
|
|||||||
* tastypie integration
|
* tastypie integration
|
||||||
* audit cascade behaviors
|
* audit cascade behaviors
|
||||||
* split model into subdirs
|
* split model into subdirs
|
||||||
* django admin
|
* django admin -- add more models, set up blank=True on optional fields everywhere
|
||||||
* business logic
|
* business logic
|
||||||
* celery integration / job status API
|
* celery integration / job status API
|
||||||
* RBAC integration
|
* RBAC integration
|
||||||
* python CLI client
|
* python CLI client
|
||||||
* UI layer (...)
|
* UI layer (...)
|
||||||
* clean up initial migrations
|
* clean up initial migrations
|
||||||
|
|
||||||
|
NEXT STEPS
|
||||||
|
|
||||||
|
* Michael -- REST resources, REST auth, possibly tweak models, admin UI plumbing, add blank=True, etc
|
||||||
|
* Chris -- celery infra, use db queue if possible?
|
||||||
|
|||||||
10
lib/api/resources/organizations.py
Normal file
10
lib/api/resources/organizations.py
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# myapp/api.py
|
||||||
|
from tastypie.resources import ModelResource
|
||||||
|
import lib.main.models as models
|
||||||
|
|
||||||
|
class Organizations(ModelResource):
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
queryset = models.Organization.objects.all()
|
||||||
|
resource_name = 'organizations'
|
||||||
|
|
||||||
Reference in New Issue
Block a user