This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity >=0.4.22 <0.6.0; | |
contract ERC20 { | |
// Balances | |
mapping(address => uint) tokenBalances; | |
// Allowances | |
mapping(address => mapping(address => uint)) tokenAllowances; | |
// The owner of this token | |
address public owner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" This is a quick fix to provide full dehydration by demand | |
on Django Tastypie. | |
In order to use it you can query for: | |
/api/v1/user/1/related_full=True | |
""" | |
class RelatedResource(ModelResource): |