Skip to content

Instantly share code, notes, and snippets.

View MRHarrison's full-sized avatar

Matthew Harrison MRHarrison

  • Earth
View GitHub Profile
@MRHarrison
MRHarrison / ERC20.sol
Last active September 10, 2020 15:34 — forked from giladHaimov/BasicERC20.sol
Basic ERC20 implementation
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 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):