• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux django-model-utils Download

django-model-utils

October 27, 2009
Django Model Mixins and Utilities simplify coding by providing pre-defined algorithms for common tasks, including custom queries, filtering, and data validation. This software library also offers built-in support for time and date management, string handling, and more.
Version 0.3.1
License BSD License
Platform Linux
Supported Languages English
Homepage launchpad.net
Developed by Carl Meyer
The django-model-utils software package is built for Django models and includes mixins and utilities. One of the notable features is the InheritanceCastModel abstract base class, which is designed for the parent model in a model-inheritance hierarchy. With InheritanceCastModel, the child model instances know what type they are by using an automatically-set foreign key to ContentType. This feature enables automatic casting of a parent instance to its corresponding leaf child instance.

As an example, if a model called Place has subclasses Restaurant and Bar, querying all Places will only return Place instances, even for objects that are actually Restaurant or Bar. However, if Place inherits from InheritanceCastModel, the cast() method can be called on each Place. This method will return an instance of the correct subtype: either Restaurant or Bar.

It is worth noting that for large querysets, the cast() method is inefficient, as it results in n queries to the subtype tables. However, it is possible to write a QuerySet subclass to minimize this inefficiency to k queries for k subtypes in the inheritance tree.

Another feature of the django-model-utils package is the TimeStampedModel abstract base class. This class provides self-updating created and modified fields for any model that inherits it. The created field is automatically set when a new instance is created, while the modified field updates itself every time the instance is modified.

Overall, the django-model-utils package is a useful tool for developers working with Django models. Its mixins and utilities like InheritanceCastModel and TimeStampedModel can help streamline the model-inheritance process and reduce the workload for developers.
What's New

Version 0.3.1: N/A

Free Download 5K
420
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    157
  2. Dvgrab 3.4
    94
  3. DynVPN 1.0
    83
  4. CherryTV 0.1
    81
  5. SlideMap 1.2.2
    76
  6. porm r2
    72
  7. Clewarecontrol 0.8
    71
  8. Hills 2.0
    71
  9. fuseftp 0.8
    70
  10. Java Games 1.0
    70

Related Downloads

AsmFile
AsmFile is a nimble and efficient file manager developed using assembly language.
TracServerSideRedirectPlugin
A Trac plugin that enables server-side redirects for web pages.
Transcraft My Accountant
Transcraft My Accountant is a versatile and dynamic reporting software, capable of ...
pyTerra
pyTerra is a Python software module designed for utilizing Terraserver, which enables ...
DoctorJ
DoctorJ is a Java documentation analysis tool for software developers. It is ...
IPv6 CARE
Automatically test for IPv6 compliance during runtime with this experiment, ensuring that ...
SLAX Frodo Edition
SLAX Frodo edition provides the core console for all SLAX releases.
KernelCheck
KernelCheck is a software tool that simplifies the process of building the ...
pink
Pink is a Vim theme designed for 256 color terminals, featuring shades ...
SolarBeam
This software allows users to create and design solar diagrams with ease. ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.