photo/models.py:
# (c) CareerGrub - http://www.careergrub.com - Interactive Media and Web Technology Jobs
from common.models import City, State, Country, Region
class Photo(models.Model):
# this could be a Region, Country, State, City,
object_type = models.ForeignKey(ContentType, null=True, blank=True)
object_id = models.PositiveIntegerField(null=True, blank=True)
content_object = generic.GenericForeignKey("object_type", "object_id")
templates/admin/photo/photo/change_form.html:
# (c) CareerGrub - http://www.careergrub.com - Interactive Media and Web Technology Jobs
{% extends "admin/change_form.html" %}
{% block extrahead %}{{ block.super }}
{% endblock %}