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
/* | |
Reddit DailyProgrammer Challenge #180 -- Tamagotchi Emulator | |
By Aerospark12 (aka Luke) | |
I may have gone a little bit overboard with this one, but I've got fond memories of tamagotchi from when | |
I was but a wee laddie, I've always wanted to make something like this, and I really enjoy graphics and animation | |
The design of this is partially inspirte by how I understand "low level" ICs to work, as an homage to the real tamagotchi |
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
from django.contrib.admin import widgets | |
from django import forms | |
from django.contrib import admin | |
# create wrappers for overriding the queryset | |
class ToWrapper(object): | |
def __init__(self, to, manager): | |
self.to = to | |
self._default_manager = manager |