You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Email(models.Model):
email = models.EmailField("Email", unique=True)
Trying to upgrade to a model with a field with the value of unique = true; generates the following error:
/lib/python3.6/site-packages/rest_framework/validators.py", line 71, in exclude_current_instance
return queryset.exclude(pk=self.instance.pk)
Exception Type: AttributeError at /contracts/api/requestboxup/
Exception Value: 'QuerySet' object has no attribute 'pk'
Note: removing the unique = true property; it works perfectly
The text was updated successfully, but these errors were encountered:
Model
Trying to upgrade to a model with a field with the value of unique = true; generates the following error:
Note: removing the unique = true property; it works perfectly
The text was updated successfully, but these errors were encountered: