peewee Documentation Release 1.0.0
and foreign key joins will be more expensive. That being said, here is how you can use non-integer pks in peewee. from peewee import Model, PrimaryKeyField, VarCharColumn class UUIDModel(Model): #0 码力 | 101 页 | 163.20 KB | 1 年前3Django 4.2.x Documentation
pk="47"> This example links the given user with the permission models with PKs 46 and 47. Control characters If the content to be serialized contains control characters that are ManyToMany- relations are serialized for the model that defines them and are represented as a list of PKs. Be aware that not all Django output can be passed unmodified to json. For example, if you have some 2013-01-16 08:16:59.844560+00:00 Referential fields are again represented by the PK or sequence of PKs. Natural keys The default serialization strategy for foreign keys and many-to-many relations is to0 码力 | 3305 页 | 3.16 MB | 1 年前3Django CMS 2.4.x Documentation
limit_choices_to causes errors due to excessively long URLs if you have many thousands of users (the PKs are all included in the URL of the popup window). For this reason, we only apply this limit if the0 码力 | 156 页 | 727.78 KB | 6 月前3Django 3.0.x Documentation
pk="47"> This example links the given user with the permission models with PKs 46 and 47. Control characters If the content to be serialized contains control characters that are ManyToMany- relations are serialized for the model that defines them and are represented as a list of PKs. Be aware that not all Django output can be passed unmodified to json. For example, if you have some 4b678b301dfd8a4e0dad910de3ae245b Referential fields are again represented by the PK or sequence of PKs. Natural keys The default serialization strategy for foreign keys and many-to-many relations is to0 码力 | 3085 页 | 2.95 MB | 1 年前3Django 4.1.x Documentation
pk="47"> This example links the given user with the permission models with PKs 46 and 47. Control characters If the content to be serialized contains control characters that are ManyToMany- relations are serialized for the model that defines them and are represented as a list of PKs. Be aware that not all Django output can be passed unmodified to json. For example, if you have some 2013-01-16 08:16:59.844560+00:00 Referential fields are again represented by the PK or sequence of PKs. Natural keys The default serialization strategy for foreign keys and many-to-many relations is to0 码力 | 3240 页 | 3.13 MB | 1 年前3Django 4.0.x Documentation
pk="47"> This example links the given user with the permission models with PKs 46 and 47. Control characters If the content to be serialized contains control characters that are ManyToMany- relations are serialized for the model that defines them and are represented as a list of PKs. Be aware that not all Django output can be passed unmodified to json. For example, if you have some 2013-01-16 08:16:59.844560+00:00 Referential fields are again represented by the PK or sequence of PKs. Natural keys The default serialization strategy for foreign keys and many-to-many relations is to0 码力 | 3184 页 | 3.14 MB | 1 年前3Django 3.2.x Documentation
pk="47"> This example links the given user with the permission models with PKs 46 and 47. Control characters If the content to be serialized contains control characters that are ManyToMany- relations are serialized for the model that defines them and are represented as a list of PKs. Be aware that not all Django output can be passed unmodified to json. For example, if you have some 4b678b301dfd8a4e0dad910de3ae245b Referential fields are again represented by the PK or sequence of PKs. All data is now dumped with Unicode. If you need the previous behavior, pass allow_unicode=False0 码力 | 3121 页 | 3.08 MB | 1 年前3Django 3.1.x Documentation
pk="47"> This example links the given user with the permission models with PKs 46 and 47. Control characters If the content to be serialized contains control characters that are ManyToMany- relations are serialized for the model that defines them and are represented as a list of PKs. Be aware that not all Django output can be passed unmodified to json. For example, if you have some 4b678b301dfd8a4e0dad910de3ae245b Referential fields are again represented by the PK or sequence of PKs. All data is now dumped with Unicode. If you need the previous behavior, pass allow_unicode=False0 码力 | 3094 页 | 3.03 MB | 1 年前3Django 5.1 Documentation
pk="47"> This example links the given user with the permission models with PKs 46 and 47. Control characters If the content to be serialized contains control characters that are ManyToMany- relations are serialized for the model that defines them and are represented as a list of PKs. Be aware that not all Django output can be passed unmodified to json [https://docs.python.org/3/library/json 2013-01-16 08:16:59.844560+00:00 Referential fields are again represented by the PK or sequence of PKs. Natural keys The default serialization strategy for foreign keys and many-to-many relations is to0 码力 | 3513 页 | 3.17 MB | 1 年前3Django 5.1.2 Documentation
pk="47"> This example links the given user with the permission models with PKs 46 and 47. Control characters If the content to be serialized contains control characters that are ManyToMany- relations are serialized for the model that defines them and are represented as a list of PKs. Be aware that not all Django output can be passed unmodified to json [https://docs.python.org/3/library/json 2013-01-16 08:16:59.844560+00:00 Referential fields are again represented by the PK or sequence of PKs. Natural keys The default serialization strategy for foreign keys and many-to-many relations is to0 码力 | 3519 页 | 3.17 MB | 1 年前3
共 25 条
- 1
- 2
- 3