Ticket #13803: 13803.diff
File 13803.diff, 661 bytes (added by , 14 years ago) |
---|
-
django/db/backends/creation.py
41 41 for f in opts.local_fields: 42 42 col_type = f.db_type(connection=self.connection) 43 43 tablespace = f.db_tablespace or opts.db_tablespace 44 if f.name == 'pk': 45 raise AttributeError("Model attribute cannot be named 'pk'") 44 46 if col_type is None: 45 47 # Skip ManyToManyFields, because they're not represented as 46 48 # database columns in this table.