Hello,

I'm new to Django and have some problems on how to create the models.

What I want to do is something similar to a spreadsheet, but with more
than one data field per intersection.

Basically like this: (http://dpaste.com/hold/95128/)

Items/Members: Person_A | Person_B | Person_C
Item_1: x=1,y=3 | x=4,y=2 | x=7,y=5
Item_2: x=8,y=2 | x=2,y=0 | x=8,y=4
Item_3: x=4,y=9 | x=5,y=9 | x=3,y=1
.
.
(and so on)

This is the most I could figure out so far (I know, it's almost
nothing): http://dpaste.com/hold/95127/

The main problems are the x= and y= for the items, because each item
has a lot of x and y, namely one x and one y for each person.

I also don't understand if I need to use the ForeignKey in Item and
Person referring to the CostSheet or the ManyToManyField in the
CostSheet referring to Item and Person or even both.

Thanks for your help.

--~--~---------~--~----~------------~-------~--~----~
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