[EMAIL PROTECTED] wrote: > i imported 2 users in the model LoginInfo the first is lab_id = '100' > and the second is lab_id = '200' > how do i put in the data in the class Modules ? > > what i thought i had to do was first create a object from the LoginInfo > class like > p = LoginInfo.objects.get(lab_id='100') > > and next just put in the data in the Modules class like > p.module_set.create(lupus=1,apa=0)
try p.modules_set.create(lupus=1,apa=0) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---