feat: deprecate email, pre-verify users + documentation
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user