you mean Django Foreign key ?

Mohit Sharma <mohit.stupi...@gmail.com> 于2018年9月28日周五 下午1:57写道:

> Handle what ? If you mean if you can create the model in django then yes
> you can.
> On Thu, Sep 27, 2018 at 10:54 PM NP <nirali.supe1...@gmail.com> wrote:
>
>> Hello ,
>>
>> The database structure :
>>
>>                                 |------------------------------|
>>                                 | Measure_1_Table              |
>>                                 |------------------------------|
>>                            /----|   id                         |
>>                            |    |   count                      |
>>                            |    |------------------------------|
>>                            |
>>                            |
>>                            |
>>                            |
>> |----------------------|   |    |----------------------------|
>> | Contexts             |   |    | Measure_2_Table            |
>> |----------------------|   |    |----------------------------|
>> |    suite             |---|----|   id                       |
>> |    measure           |        |   percentage               |
>> |    measure_id        |        |----------------------------|
>> |----------------------|
>>
>> *Tables with raw data:*
>>
>> *Contexts*
>> suite     measure                 measure_id
>> 1         Measure_1_Table         1
>> 1         Measure_2_Table         1
>> 2         Measure_2_Table         1
>>
>> *Measure_1_Table*
>>
>> id      count
>> 1       10
>>
>>
>> *Measure_2_Table*
>>
>> id    percentage
>> 1     20
>>
>> My current database structure, table *Contexts *stores the measure table
>> name in the measure field and measure table record id in measure_id field.
>> Is there a way it can be handle in the Django?
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django REST framework" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-rest-framework+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django REST framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-rest-framework+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to