Re: UML to Django models

2021-08-27 Thread Ahmet Faruk Yılmaz
I think there are some missing parts on your uml diagram. As Nigel said, Product should have features. 26 Ağustos 2021 Perşembe tarihinde saat 20:01:53 UTC+3 itibarıyla abubak...@gmail.com şunları yazdı: > Hi, Cale thanks for the reply. but in uml diagram Product Feature doesn't > have any rel

Re: UML to Django models

2021-08-26 Thread DJANGO DEVELOPER
Hi, Cale thanks for the reply. but in uml diagram Product Feature doesn't have any relation with the product. so why did you made a relation with the product model? can you please guide me on how to do this? On Thu, Aug 26, 2021 at 8:44 PM Cale Roco wrote: > theres a lot of different ways you ca

Re: UML to Django models

2021-08-26 Thread Cale Roco
theres a lot of different ways you can do this, depending on your desired functionality, the amount of data you intend to store etc, // Simple Example class Product(models.Model): name = models.Charfield(max_length=255) class ProductFeature(models.Model): product = models.ForeignKey(Prod

Re: UML to Django models

2021-08-26 Thread DJANGO DEVELOPER
Hi Derek it is not difficult for me to write the model for the product entity. but there are also other diagrams that I want to convert into models. so I was just wanted to clear my concept. I am confused in Super types and sub types as you can see an entity within the entity. how should I convert

Re: UML to Django models

2021-08-26 Thread Derek
There is not sufficient data in that image to create models. You don't know the field types, for example. Once you have those, it should not be too hard e.g.: from django.db import models class Product(models.Model): product_id = models.AutoField() name = models.CharField( max_length=2

Re: UML to Django models

2021-08-26 Thread DJANGO DEVELOPER
can anyone help me? On Thu, Aug 26, 2021 at 9:32 AM DJANGO DEVELOPER wrote: > Currently, I am working on an inventory management system and I have got > some UML diagrams and want to convert those uml diagrams into django > models. So can anyone guide me on how to convert those UML diagrams into

UML to Django models

2021-08-25 Thread DJANGO DEVELOPER
Currently, I am working on an inventory management system and I have got some UML diagrams and want to convert those uml diagrams into django models. So can anyone guide me on how to convert those UML diagrams into django models? an example is below of uml diagram -- You received this message