mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
Add organizations resource file, update TODO & gitignore
This commit is contained in:
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