Changes between Version 1 and Version 2 of CookBookGenericAttribute


Ignore:
Timestamp:
Jun 25, 2010, 3:01:51 PM (14 years ago)
Author:
Andrew Ladouceur
Comment:

Initial objects created were diamond and emerald, the rest of the sample code uses quartz and emerald. I left the hardness values alone, even though they're incorrect (quartz=7, emerald=7.5-8).

Legend:

Unmodified
Added
Removed
Modified
  • CookBookGenericAttribute

    v1 v2  
    5757{{{
    5858#!python
    59 >>> diamond = Mineral.objects.create(name="Diamond", hardness=10)
     59>>> quartz = Mineral.objects.create(name="Quartz", hardness=10)
    6060>>> emerald = Mineral.objects.create(name="Emerald", hardness=6)
    6161>>> Attribute.objects.create(content_object=quartz, name='color', value='black')
Back to Top