Posts Tagged with Models

26 Jan 2019, 14:58

Django: Custom Ordering/Grouping for Model Instances Using Linked List
Linked list is a data structure where each object has points to next. In django, linked list can provide an interesting solution when it comes to custom ordering/grouping issues. Lets think of an example like this: you are making a blog site, and you have made a Post Model like this:

03 Jan 2019, 02:00

Django: Changing User Model in Mid-Project
Every now and then I see some questions pop up in stackoverflow with title: ValueError: Related model ‘app.User’ cannot be resolved This is a very common issue and pops up when the user tries to run the migration. So, lets talk more about what is this problem and how can we solve it.