django-inheritance Questions
4
Solved
I'm looping through a list of objects and saving. I need the newly generated id or pointer id right after the save but it is None.
Here is my code:
for category in category_list:
saved_categor...
Valeda asked 30/11, 2013 at 19:16
10
Solved
I'm looking to do this:
class Place(models.Model):
name = models.CharField(max_length=20)
rating = models.DecimalField()
class LongNamedRestaurant(Place): # Subclassing `Place`.
name = models....
Truculent asked 26/2, 2010 at 20:50
3
Solved
I'm working on a Django project that I did not start and I am facing a problem of inheritance.
I have a big model (simplified in the example) called MyModel that is supposed to represents different...
Scientist asked 25/5, 2018 at 8:58
2
Solved
I have an existing parent entity with many existing records:
class Entity(models.Model):
name = models.CharField('Name', max_length=64, db_index=True)
I also have child objects that extend usi...
Conceivable asked 3/8, 2017 at 21:17
3
Solved
I'm wondering if anyone knows how to deal with the following quirky template structure:
### base.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
...
Marley asked 3/4, 2012 at 15:23
4
Solved
Is there a way to determine what the 'real' class of a Django database object is, after it has been returned from a query for on a base class?
For instance, if I have these models...
class Animal...
Louque asked 7/3, 2011 at 21:36
1
Solved
I have recently being trying to create a project which has several levels of user involved.
(Just an example of an abbreviated and rough schema)
ME (Super User)
Client(s)
Customer(s)
Survey Co...
Garlan asked 15/3, 2011 at 20:30
1
© 2022 - 2025 — McMap. All rights reserved.