﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
1021	[PATCH] unique_together should check the uniqueness in the validation phase	Ian@…	nobody	"something like this should be in the default framework whenever someone has a 'unique_together' meta option in their model

{{{
    def _manipulator_validate_name(self, field_data, all_data):
          from django.core import validators
          if str(self.__class__) == ""django.models.tags.TagManipulatorAdd"":          
            cursor= db.cursor()                                                      
            cursor.execute(""""""                                                       
                SELECT 1 FROM conf_tags WHERE name=%s and type_id=%s LIMIT 1         
                """"""                                                                  
                ,[ all_data['name'], all_data['type'] ])                             
            if cursor.fetchone():                                                    
              raise validators.ValidationError, ""A tag with this name and type already exists.""
}}}"	defect	closed	Validators	dev	major	fixed	model-validation	mpjung@…	Accepted	1	0	0	1		
