Hi,

I have a trouble with model definition: I have several classes, for
example a Car class:

class Car(models.Model):
    numberplate = models.CharField(max_length=20)
    color = models.CharField(max_length=100)
    places = models.IntegerField()
    reparation = models.DateTimeField()

I want to add Reference (like a book reference:name, date, reference
number, etc) in any change of this fields: for example, the bill
reference paper of color change, or the bill for the reparation, etc.

How can I add the references to all fields without defining a class
for each fields that only contains the field and the reference?

Thanks in advance,
Xan.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to