Created
January 31, 2014 04:05
-
-
Save Verurteilt/8726466 to your computer and use it in GitHub Desktop.
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.contenttypes.fields import GenericForeignKey | |
from django.contrib.contenttypes.models import ContentType | |
class Log_Entry_General(models.Model): | |
mensaje = models.CharField() | |
content_type = models.ForeignKey(ContentType) | |
object_id = models.PositiveIntegerField() | |
object = Generic.ForeignKey('content_type', 'object_id') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment