Add a Meta.serialize option to models
|Reported by:||emulbreh||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||no|
For unmanaged models it would be nice if dumpdata knew that a particular model should never be serialized.
class MyModel(models.Model): class Meta: managed = False serialize = False
I picked the name serialize for symmetry with Field.serialize, although I'd generally prefer serializable.
Change History (5)
Changed 5 years ago by emulbreh
comment:1 Changed 5 years ago by anonymous
- Has patch set
- Needs documentation set
- Needs tests set
- Patch needs improvement unset