1. Ludia
  2. Untitled project
  3. dynamodb-mapper

Commits

Max Noel  committed 2c79190

* delete() no longer needs to make a get_item() call.

  • Participants
  • Parent commits d140085
  • Branches default

Comments (0)

Files changed (1)

File dynamodb_mapper/model.py

View file
             range_key_value = None
 
         table = ConnectionBorg().get_table(self.__table__)
-        table.get_item(
-            hash_key=hash_key_value, range_key=range_key_value).delete()
+        Item(table, hash_key_value, range_key_value).delete()