# Bullet Proofing Django Models

DevFeed: [Bullet Proofing Django Models](<https://devfeed.tech/articles/bullet-proofing-django-models-33891.md>)

Original publisher: [Read original article](<https://hakibenita.com/bullet-proofing-django-models>)

Author: Haki Benita

Published: 2016-10-25T21:00:00Z

Content type: tutorial

Language: en

Sources: [Haki Benita](<https://devfeed.tech/sources/haki-benita.md>)

Topics: [Django](<https://devfeed.tech/topics/django.md>), [Development](<https://devfeed.tech/topics/development.md>), [Requirements](<https://devfeed.tech/topics/requirements.md>)

Tags: [account](<https://devfeed.tech/tags/account.md>), [articles](<https://devfeed.tech/tags/articles.md>), [code](<https://devfeed.tech/tags/code.md>), [development](<https://devfeed.tech/tags/development.md>), [django](<https://devfeed.tech/tags/django.md>), [id](<https://devfeed.tech/tags/id.md>), [identifier](<https://devfeed.tech/tags/identifier.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [models](<https://devfeed.tech/tags/models.md>), [orm](<https://devfeed.tech/tags/orm.md>), [web-interface](<https://devfeed.tech/tags/web-interface.md>)

## AI overview

This tutorial explains patterns for designing Django models for a bank-account-like feature. It starts with business requirements, then covers account uniqueness, public and private identifiers, deletion protection, balance limits, and action logging through balance deltas.

## Source excerpt

We recently added a bank account like functionality into one of our products. During the development we encountered some textbook problems and I thought it can be a good opportunity to go over some of the patterns we use in our Django models.