If I add some data to one table, via a form, will be this data shown in another form that uses a different table? To explain in detail:
I have this model ################### .. .. class Category(meta.Model): CategoryName=meta.CharField(maxlength=100,unique=True) CategoryDescription=meta.CharField(maxlength=200,blank=True) Priority=meta.IntegerField(maxlength=6,blank=True,null=True) Subcategory= meta.IntegerField(maxlength=6,blank=True,null=True) Date=meta.DateTimeField(auto_now_add=True) def __repr__(self): return self.CategoryName class META: admin = meta.Admin( search_fields = ['CategoryName'], ) class Product(meta.Model): PictureNo=meta.CharField(maxlength=10,blank=True) Name=meta.CharField(maxlength=100,blank=True) Description=meta.TextField(blank=True) Price=meta.IntegerField(maxlength=6,blank=True,null=True) Vat=meta.IntegerField(maxlength=4,blank=True,null=True) TypeofPromotiont=meta.CharField(maxlength=50,choices=(('Normal','Normal'),('New','New'),('Action','Action'),('Discount','Discount'))) Date=meta.DateTimeField(auto_now_add=True) productkey=meta.ForeignKey(Category) def __repr__(self): return self.Name class META: admin = meta.Admin( search_fields = ['Name'], ) #################### When I add a new Category I need to make a possible for a user to be able to choose that category for the Product that he is being inserted.Is that possible in Django? Thank you for your reply Regards, L --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---