Changeset 941
- Timestamp:
- 10/18/05 11:02:53 (3 years ago)
- Files:
-
- django/branches/new-admin/django/core/db/backends/ado_mssql.py (modified) (2 diffs)
- django/branches/new-admin/django/models/auth.py (modified) (1 diff)
- django/branches/new-admin/docs/model-api.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/new-admin/django/core/db/backends/ado_mssql.py
r881 r941 103 103 104 104 def get_random_function_sql(): 105 # TODO: This is a guess. Make sure this is correct. 106 return "RANDOM()" 105 return "RAND()" 106 107 def get_table_list(cursor): 108 raise NotImplementedError 107 109 108 110 def get_relations(cursor, table_name): … … 152 154 'USStateField': 'varchar(2)', 153 155 } 156 157 DATA_TYPES_REVERSE = {} django/branches/new-admin/django/models/auth.py
r549 r941 181 181 action_time = meta.DateTimeField(auto_now=True) 182 182 user = meta.ForeignKey(User) 183 content_type = meta.ForeignKey(core.ContentType, blank=True, null=True) # TODO: content_type_id name?183 content_type = meta.ForeignKey(core.ContentType, blank=True, null=True) 184 184 object_id = meta.TextField(blank=True, null=True) 185 185 object_repr = meta.CharField(maxlength=200) django/branches/new-admin/docs/model-api.txt
r913 r941 250 250 The admin represents this as an ``<input type="file">`` (a file-upload widget). 251 251 252 Using a ` FieldField` or an ``ImageField`` (see below) in a model takes a few252 Using a ``FileField` or an ``ImageField`` (see below) in a model takes a few 253 253 steps: 254 254
