Django

Code

Changeset 2486

Show
Ignore:
Timestamp:
03/03/06 18:53:52 (3 years ago)
Author:
lukeplant
Message:

magic-removal: Fixed uniqueness constraint on ContentType? model.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/magic-removal/django/contrib/contenttypes/models.py

    r2411 r2486  
    2323    name = models.CharField(maxlength=100) 
    2424    app_label = models.CharField(maxlength=100) 
    25     model = models.CharField(_('python model class name'), maxlength=100, unique=True
     25    model = models.CharField(_('python model class name'), maxlength=100
    2626    objects = ContentTypeManager() 
    2727    class Meta: 
     
    3030        db_table = 'django_content_type' 
    3131        ordering = ('name',) 
     32        unique_together = (('app_label', 'model'),) 
    3233 
    3334    def __repr__(self):