On Wed, Jul 2, 2014 at 11:03 AM, Aashita Dutta
wrote:
>
> here is my model-
> from django.db import models
> import useraccounts
> from librehatti.catalog.models import *
> from django.contrib.auth.models import User
>
> class QuotedOrder(models.Model):
>
here is my model-
from django.db import models
import useraccounts
from librehatti.catalog.models import *
from django.contrib.auth.models import User
class QuotedOrder(models.Model):
quote_buyer_id = models.ForeignKey(User)
quote_is_debit = models.BooleanField()
Woah there.
Ok, well it's hard to help without more info, but here are some tips:
- please don't ask a community project to "reply soon". We will reply
when and if we can. Obviously ideally we would reply, and speedily,
but we get what we got.
- How to save the ForeignKey on an item? Well
On Tuesday, July 1, 2014 5:58:59 PM UTC+5:30, Lachlan Musicman wrote:
>
> Hi Aashita,
>
> There's a couple of things happening here. I'm no expert and this is a
> rushed end of evening email.
>
> For getting the obj.save() to work, here:
>
> cd = form.cleaned_data
>
On Tuesday, July 1, 2014 5:58:59 PM UTC+5:30, Lachlan Musicman wrote:
>
> Hi Aashita,
>
> There's a couple of things happening here. I'm no expert and this is a
> rushed end of evening email.
>
> For getting the obj.save() to work, here:
>
> cd = form.cleaned_data
>
PurchaseOrder has no use here, and yes item is foreign key to Product class
which consists of item's name i.e item__name. Actually my QuotedItem class
in models consist of 5 fields, and i want to save only two. Would this
method be work? And also can we save method item__name which is foreign
6 matches
Mail list logo