pangea.contrib.tagging package¶
Subpackages¶
Submodules¶
pangea.contrib.tagging.admin module¶
pangea.contrib.tagging.apps module¶
pangea.contrib.tagging.models module¶
-
class
pangea.contrib.tagging.models.GenericTagRelationship(*args, **kwargs)[source]¶ Bases:
pangea.core.mixins.AutoCreatedUpdatedMixin-
payload¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
-
class
pangea.contrib.tagging.models.SampleGroupTagRelationship(id, created_at, updated_at, payload, tag, sample_group)[source]¶ Bases:
pangea.contrib.tagging.models.GenericTagRelationship-
exception
DoesNotExist¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects= <django.db.models.manager.Manager object>¶
-
sample_group¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
sample_group_id¶
-
tag¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
tag_id¶
-
exception
-
class
pangea.contrib.tagging.models.SampleTagRelationship(id, created_at, updated_at, payload, tag, sample)[source]¶ Bases:
pangea.contrib.tagging.models.GenericTagRelationship-
exception
DoesNotExist¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects= <django.db.models.manager.Manager object>¶
-
sample¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
sample_id¶
-
tag¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
tag_id¶
-
exception
-
class
pangea.contrib.tagging.models.Tag(*args, **kwargs)[source]¶ Bases:
pangea.core.mixins.AutoCreatedUpdatedMixinThis class represents the sample model.
-
exception
DoesNotExist¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned¶ Bases:
django.core.exceptions.MultipleObjectsReturned
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
name¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects= <django.db.models.manager.Manager object>¶
-
payload¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
tagged_sample_groups¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
tagged_samples¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
uuid¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
pangea.contrib.tagging.models.TagTagRelationship(id, created_at, updated_at, payload, tag, other_tag)[source]¶ Bases:
pangea.contrib.tagging.models.GenericTagRelationship-
exception
DoesNotExist¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects= <django.db.models.manager.Manager object>¶
-
other_tag¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
other_tag_id¶
-
tag¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
-
tag_id¶
-
exception
pangea.contrib.tagging.serializers module¶
-
class
pangea.contrib.tagging.serializers.TagAddSampleGroupSerializer(instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)[source]¶ Bases:
rest_framework.serializers.Serializer
-
class
pangea.contrib.tagging.serializers.TagAddSampleSerializer(instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)[source]¶ Bases:
rest_framework.serializers.Serializer
-
class
pangea.contrib.tagging.serializers.TagAddTagSerializer(instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)[source]¶ Bases:
rest_framework.serializers.Serializer
-
class
pangea.contrib.tagging.serializers.TagSerializer(instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)[source]¶ Bases:
rest_framework.serializers.ModelSerializer-
class
Meta[source]¶ Bases:
object-
fields= ('uuid', 'name', 'created_at', 'updated_at', 'payload')¶
-
model¶ alias of
pangea.contrib.tagging.models.Tag
-
-
class
pangea.contrib.tagging.tests module¶
Test suite for Sample model.
-
class
pangea.contrib.tagging.tests.TagApiTests(methodName='runTest')[source]¶ Bases:
rest_framework.test.APITestCase
pangea.contrib.tagging.urls module¶
-
pangea.contrib.tagging.urls.path(route, view, kwargs=None, name=None, *, Pattern=<class 'django.urls.resolvers.RoutePattern'>)¶
pangea.contrib.tagging.views module¶
-
class
pangea.contrib.tagging.views.TagCreateView(**kwargs)[source]¶ Bases:
pangea.core.views.utils.PermissionedListCreateAPIView-
filterset_fields= ['uuid', 'name']¶
-
permission_classes= (<class 'rest_framework.permissions.IsAuthenticatedOrReadOnly'>,)¶
-
queryset¶
-
serializer_class¶
-
-
class
pangea.contrib.tagging.views.TagDetailsView(**kwargs)[source]¶ Bases:
rest_framework.generics.RetrieveUpdateDestroyAPIViewThis class handles the http GET, PUT and DELETE requests.
-
permission_classes= (<class 'rest_framework.permissions.IsAuthenticatedOrReadOnly'>,)¶
-
queryset¶
-
serializer_class¶
-
-
class
pangea.contrib.tagging.views.TagSampleGroupsView(**kwargs)[source]¶ Bases:
rest_framework.generics.ListAPIViewThis class handles tagging sample groups.
-
filter_queryset(queryset)[source]¶ Given a queryset, filter it with whichever filter backend is in use.
You are unlikely to want to override this method, although you may need to call it either from a list view, or from a custom get_object method if you want to apply the configured filtering backend to the default queryset.
-
get_serializer_class()[source]¶ Return the class to use for the serializer. Defaults to using self.serializer_class.
You may want to override this if you need to provide different serializations depending on the incoming request.
(Eg. admins get full serialization, others get basic serialization)
-
permission_classes= (<class 'rest_framework.permissions.IsAuthenticatedOrReadOnly'>,)¶
-
queryset¶
-
-
class
pangea.contrib.tagging.views.TagSamplesView(**kwargs)[source]¶ Bases:
rest_framework.generics.ListAPIViewThis class handles tagging samples.
-
filter_queryset(queryset)[source]¶ Given a queryset, filter it with whichever filter backend is in use.
You are unlikely to want to override this method, although you may need to call it either from a list view, or from a custom get_object method if you want to apply the configured filtering backend to the default queryset.
-
get_serializer_class()[source]¶ Return the class to use for the serializer. Defaults to using self.serializer_class.
You may want to override this if you need to provide different serializations depending on the incoming request.
(Eg. admins get full serialization, others get basic serialization)
-
permission_classes= (<class 'rest_framework.permissions.IsAuthenticatedOrReadOnly'>,)¶
-
queryset¶
-
-
class
pangea.contrib.tagging.views.TagTagsView(**kwargs)[source]¶ Bases:
rest_framework.generics.ListAPIViewThis class handles managing membership of sample groups within projects.
-
get_serializer_class()[source]¶ Return the class to use for the serializer. Defaults to using self.serializer_class.
You may want to override this if you need to provide different serializations depending on the incoming request.
(Eg. admins get full serialization, others get basic serialization)
-
permission_classes= (<class 'rest_framework.permissions.IsAuthenticatedOrReadOnly'>,)¶
-
queryset¶
-