Let's see whether you can answer the following questions correctly:
- Which of the following lines define a field named
title
in a model that will generate a unique constraint on this field?title = django.db.models.CharField(max_length=250, unique=True)
title = django.db.models.UniqueCharField(max_length=250)
title = django.db.models.CharField(max_length=250, options=django.db.models.unique_constraint)
- Which of the following lines define a field named
title
in a model that won't generate a unique constraint on this field?title = django.db.models.CharField(max_length=250, unique=False)
title = django.db.models.NonUniqueCharField(max_length=250)
title = django.db.models.CharField(max_length=250, options=django.db.models.allow_duplicates)
- Which of the following setting's keys in the
REST_FRAMEWORK
dictionary specifies a global setting with the default pagination class that the generic views will use to provide paginated responses?DEFAULT_PAGINATED_RESPONSE_PARSER
DEFAULT_PAGINATION_CLASS...