mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
Switch over to django-rest-framework from tastypie. Less black magic, seems to just work :)
This commit is contained in:
10
lib/main/serializers.py
Normal file
10
lib/main/serializers.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from django.contrib.auth.models import User as DjangoUser
|
||||
from lib.main.models import User, Organization, Project
|
||||
from rest_framework import serializers, pagination
|
||||
|
||||
class OrganizationSerializer(serializers.ModelSerializer):
|
||||
|
||||
class Meta:
|
||||
model = Organization
|
||||
fields = ('name', 'description')
|
||||
|
||||
Reference in New Issue
Block a user