Tim,

Brilliant idea.  I'm a car nut and what you've built would allow a
Dyno to be plugged into his django app and record all the data for a
particular car, and then just have a view that pulled out the max hp
or torque.

Very coolmultiple measurements associated with a given vehicle:
>
>   class Engine(Model):
>     name = CharField(...)
>
>   class HorsepowerMeasurements(Model):
>     engine = ForeignKey(Engine)
>     value = PositiveIntegerField(...)
>     rpm = PositiveIntegerField(...)
>     def __str__(self):
>       return "%i HP at %i RPM" % (
>         self.value, self.rpm)
>
>   class TorqueMeasurements(Model):
>     engine = ForeignKey(Engine)
>     value = PositiveIntegerField(...)
>     rpm = PositiveIntegerField(...)
>     def __str__(self):
>       return "%i lb.ft. at %i RPM" % (
>         self.value, self.rpm)
>
> You should be able to use edit_inline to make this easier in the
> admin interface.
>
> Thus, you could have a single engine with 12 HP at 10 RPM, 100 HP
> at 20 RPM, and 75 HP at 30 RPM  (okay, these are totally bogus
> numbers pulled out of my head, dropping points on a quadratic curve)
>
> -tim


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to