from django.db import models
from django.contrib.auth.models import User
from tagging.fields import TagField
import tagging
# OCR model, erm, model


class OcrModel(models.Model):
    """
        OCR model objects.
    """
    user = models.ForeignKey(User)
    derived_from = models.ForeignKey("self", null=True, blank=True)
    tags = TagField()
    name = models.CharField(max_length=100, unique=True)
    description = models.TextField(null=True, blank=True)
    created_on = models.DateField(auto_now_add=True)
    updated_on = models.DateField(null=True, blank=True)
    public = models.BooleanField(default=True)
    file = models.FileField(upload_to="models")
    type = models.CharField(max_length=20,
            choices=[("char", "Character"), ("lang", "Language")])
    app = models.CharField(max_length=20,
            choices=[("ocropus", "Ocropus"), ("tesseract", "Tesseract")])


    def __unicode__(self):
        """
        String representation.
        """
        return self.name

    

@@ -888,17 +888,16 @@
 ct%22)%5D)%0A%0A
-%0A
     def 
@@ -989,20 +989,56 @@
 urn 
-self.name%0A%0A    
+%22%3C%25s: %25s%3E%22 %25 (self.__class__.__name__, self.name)%0A%0A
 %0A

Improve unicode method. Whitespace cleanup