---
title: "Discussion on \"Using clean() in your Django models post migration from a legacy stack\" | Hashnode"
description: "Discussion on \"Using clean() in your Django models post migration from a legacy stack\". If you're migrating an application from another stack where foreign keys were not enforced in the database and the some of the rows' foreign key fields have values as 0, then these would cause issues in the new application where the framework has str..."
url: "https://hashnode.com/posts/using-clean-in-your-django-models-post-migration-from-a-legacy-stack/666a41cb5cf2e60e56b16162"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using clean() in your Django models post migration from a legacy stack](https://anjanesh.dev/using-clean-in-your-django-models-post-migration-from-a-legacy-stack?utm_source=hashnode&utm_medium=feed)

If you're migrating an application from another stack where foreign keys were not enforced in the database and the some of the rows' foreign key fields have values as 0, then these would cause issues in the new application where the framework has str...

Jun 13, 2024 · 2 min read · anjanesh.dev  
Read the article

-   [#django](https://hashnode.com/tag/django)
-   [#models](https://hashnode.com/tag/models)
-   [#orm](https://hashnode.com/tag/orm)
-   [#database](https://hashnode.com/tag/database)

## Written by

[Anjanesh Lekshminarayanan](https://hashnode.com/@anjanesh)

@anjanesh · Navi Mumbai, MH

  
[View profile](https://hashnode.com/@anjanesh)

Web UI Engineer

I am a web consultant from Navi Mumbai. Mainly dealt with LAMP stack, now into Django and getting into Laravel and Cloud. Founder of nerul.in and gaali.in

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
