Skip to content

Instantly share code, notes, and snippets.


Zac Miller jzmiller1

  • Gainesville, GA
Block or report user

Report or block jzmiller1

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jzmiller1 /
Created Jun 29, 2016 — forked from mahmoud/
Recursively merging dictionaries with boltons.iterutils.remap. Useful for @hynek's configs.
This is an extension of the technique first detailed here:
In short, it calls remap on each container, back to front, using the accumulating
previous values as the default for the current iteration.
class UUIDIdMixin(models.Model):
class Meta:
abstract = True
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
class Body(UUIDIdMixin):
name = models.CharField(max_length=140)
description = models.CharField(max_length=280)
You can’t perform that action at this time.