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
#!/usr/bin/env python | |
import re | |
import os | |
import pickle | |
from libxmp import XMPFiles, consts | |
import glob | |
import sys | |
import argparse |
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
import json | |
data = json.load(open('data.json')) | |
# get changed fields | |
# import model | |
model = User | |
changes = [(unicode(x.related_model._meta), x.field.name) for x in User._meta.get_all_related_objects()] # replace User with your model | |
m = {} |
NewerOlder