Skip to main content

Django Model Queries and Managers

  • Chapter
  • First Online:
  • 5830 Accesses

Abstract

As you learned in the previous chapter, Django models encapsulate data through classes, enforce data validation, are used to interact with a Django project’s relational database, and have a myriad of options to guarantee and customize how data operates in Django projects.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   39.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    https://docs.djangoproject.com/en/1.11/ref/models/querysets/#prefetch-objects

  2. 2.

    https://docs.djangoproject.com/en/1.11/howto/custom-lookups/

  3. 3.

    https://docs.djangoproject.com/en/1.11/ref/models/querysets/#extra

  4. 4.

    https://en.wikipedia.org/wiki/Race_condition

  5. 5.

    https://docs.djangoproject.com/en/1.11/ref/models/database-functions/

  6. 6.

    https://www.python.org/dev/peps/pep-0249/

  7. 7.

    https://en.wikipedia.org/wiki/SQL_injection

  8. 8.

    https://en.wikipedia.org/wiki/Cursor_(databases )

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Daniel Rubio

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Rubio, D. (2017). Django Model Queries and Managers. In: Beginning Django. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2787-9_8

Download citation

Publish with us

Policies and ethics