diff --git a/.gitignore b/.gitignore index ba5b0591d9..79a5163ac9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ -lib/settings.py +lib/settings/local_settings.py +lib/acom.sqlite3 env/* *.py[c,o] *.swp diff --git a/TODO.md b/TODO.md index ab40a9c9b6..8f8dd844f4 100644 --- a/TODO.md +++ b/TODO.md @@ -5,10 +5,15 @@ TODO items for ansible commander * tastypie integration * audit cascade behaviors * split model into subdirs -* django admin +* django admin -- add more models, set up blank=True on optional fields everywhere * business logic * celery integration / job status API * RBAC integration * python CLI client * UI layer (...) * 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? diff --git a/lib/api/resources/organizations.py b/lib/api/resources/organizations.py new file mode 100644 index 0000000000..ba4d75e4d3 --- /dev/null +++ b/lib/api/resources/organizations.py @@ -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' +