Admin¶
Admin for activity package.
ActivityTypeAdmin ¶
Bases: ModelAdmin
Admin page for Activity Type model
Factories¶
Forms¶
ActivityTypeForm ¶
Bases: ModelForm
Activity Type form.
Models¶
Models for activity package.
ActivityType ¶
Bases: Model
activity type model
Serializers¶
Serializers for activity package.
ActivityTypeSerializer ¶
Bases: ModelSerializer
Survey Method Serializer
Source code in django_project/activity/serializers.py
Test Case¶
Test case for activity models.
ActivityTypeTestCase ¶
Bases: TestCase
unit tests for ActivityType model
setUp ¶
test_activity_type_create ¶
test_activity_type_delete ¶
test_activity_type_update ¶
test activity type update
Source code in django_project/activity/tests.py
Views¶
ActivityTypeAPIView ¶
Bases: APIView
Get Activity Type