I hereby claim:
- I am paulshannon on github.
- I am paulshannon (https://keybase.io/paulshannon) on keybase.
- I have a public key ASCL6DzxBWtDFRIMpKYb7_5x2H3o-LtMFbf-PEzxRv5aiQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Based on https://djangosnippets.org/snippets/2283/ | |
from django.db import transaction | |
from django.db.models import get_models, Model | |
from django.contrib.contenttypes.generic import GenericForeignKey | |
@transaction.atomic | |
def merge_model_objects(primary_object, alias_objects=None, keep_old=False): | |
""" | |
Use this function to merge model objects (i.e. Users, Organizations, Polls, |
#!/usr/bin/env python | |
""" | |
Convert camel-case to snake-case in python. | |
e.g.: CamelCase -> snake_case | |
e.g.: snake_case -> CamelCase | |
e.g.: CamelCase -> dash-case | |
e.g.: dash-case -> CamelCase | |
By: Jay Taylor [@jtaylor] | |
Me<modifier>: Yahya Kacem <fuj.tyoli@gmail.com> | |
Original gist: https://gist.github.com/jaytaylor/3660565 |
#Scalar
Don't edit the 'Book Users' relationships (you can easily lock yourself out of the book)
import datetime | |
import os | |
import subprocess | |
repo = "PaulShannon/TestRepo" | |
author = "PythonCronScript <>" | |
message = "Auto Updating" | |
def run(commands): | |
for c in commands: |