|
@@ -15,8 +15,7 @@ class OrdersSerializer(serializers.ModelSerializer):
|
|
|
|
|
|
def create(self, validated_data):
|
|
def create(self, validated_data):
|
|
ModelClass = self.Meta.model
|
|
ModelClass = self.Meta.model
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
if "ticket" not in validated_data:
|
|
if "ticket" not in validated_data:
|
|
# Create ticket with minimal required data
|
|
# Create ticket with minimal required data
|
|
@@ -107,9 +106,6 @@ class OrdersSerializer(serializers.ModelSerializer):
|
|
"jid": WEBSERVICE_NAME + "_backend@" + EJ_HOST,
|
|
"jid": WEBSERVICE_NAME + "_backend@" + EJ_HOST,
|
|
"affiliation": "owner"
|
|
"affiliation": "owner"
|
|
}
|
|
}
|
|
- #
|
|
|
|
- # REQUIRES TO BE TESTED, RESULTS OF THIS WERE NOT CONFIRMED TO BE CORRECT
|
|
|
|
- #
|
|
|
|
# Add all neccessary member to the room
|
|
# Add all neccessary member to the room
|
|
for member in room_members:
|
|
for member in room_members:
|
|
data["jid"] = members_accounts[member][0]
|
|
data["jid"] = members_accounts[member][0]
|