feat: deprecate email, pre-verify users + documentation

This commit is contained in:
2026-03-14 14:40:52 +03:00
parent ad711d1daf
commit 9787fb699a
13 changed files with 223 additions and 21 deletions
+1 -3
View File
@@ -34,9 +34,7 @@ class BookingSerializer(serializers.ModelSerializer):
def get_staff_name(self, obj):
if not obj.staff:
return None
first = obj.staff.user.first_name or ""
last = obj.staff.user.last_name or ""
return (first + " " + last).strip() or obj.staff.user.email
return obj.staff.user.display_name
def validate(self, attrs):
if not self.instance or "status" not in attrs: