- Language: en
51 results for object in version 3.0
-
Serializing Django objects
- … objects = [ * Restaurant . objects . all (), * Place . objects . all ()] data = serializers . serialize ( 'xml' , all_objects …
-
Making queries
- … objects from the related object set. clear() Removes all objects from the related object set. set(objs …
-
Using mixins with class-based views
- … object as context. To get the object, DetailView relies on SingleObjectMixin , which provides a get_object …
-
Built-in class-based generic views
- … objects . all () def get_object ( self ): obj = super () . get_object () # Record the last accessed date …
-
Creating forms from models
- … objects models.BaseModelFormSet. deleted_objects models.BaseModelFormSet. new_objects Limiting the number of editable objects As with …
-
Time zones
- … objects Python’s datetime.datetime objects have a tzinfo attribute that can be used to store …
-
How to use sessions
- … object When working with sessions internally, Django uses a session store object from the corresponding …
-
Form Assets (the Media class)
- … object – but one that only contains the media of interest. Combining Media objects Media objects …
-
Managing files
- … object – car.photo in the example – is a File object, which means it has all the methods …
-
Multiple databases
- … objects remain ‘sticky’ to their original database (i.e., an object retrieved from the foo database …