| 2195 | |
| 2196 | # A model representing the updated model. |
| 2197 | class IntegerPKToAutoField(Model): |
| 2198 | i = AutoField(primary_key=True) |
| 2199 | j = IntegerField(unique=True) |
| 2200 | |
| 2201 | class Meta: |
| 2202 | app_label = "schema" |
| 2203 | apps = new_apps |
| 2204 | db_table = IntegerPK._meta.db_table |
| 2205 | |
| 2206 | # An id (i) is generated by the database. |
| 2207 | obj = IntegerPKToAutoField.objects.create(j=1) |
nothing calls this directly
no test coverage detected