Fix duplicate ref_name detection and promote to error

This commit is contained in:
Cristi Vijdea
2019-02-27 21:47:31 +02:00
parent 3377ef08ea
commit 9caeed781e
2 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ from decimal import Decimal
from django.contrib.auth import get_user_model
from rest_framework import serializers
from rest_framework.compat import MinValueValidator, MaxLengthValidator
from rest_framework.compat import MaxLengthValidator, MinValueValidator
from snippets.models import LANGUAGE_CHOICES, STYLE_CHOICES, Snippet