Commits

Jean-Tiare Le Bigot  committed 7f02be7

fixed comment in from_dict

  • Participants
  • Parent commits d4632c8

Comments (0)

Files changed (1)

File dynamodb_mapper/model.py

         """
         instance = cls()
         for (name, type_) in cls.__schema__.iteritems():
-            # Fill in missing attributes with default values.
+            # Set the value if we got one from DynamoDB. Otherwise, stick with the default
             value = _dynamodb_to_python(type_, d.get(name))
-            # Set the value if we got one from DynamoDB. Otherwise, stick with the default
             if value is not None:
                 setattr(instance, name, value)
         return instance