Changes between Initial Version and Version 1 of Ticket #33555


Ignore:
Timestamp:
Mar 2, 2022, 9:08:44 AM (2 years ago)
Author:
Mike Okoth
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33555 – Description

    initial v1  
    1 Allow for something like:
     1**Allow for something like:**
     2
     3
     4{{{
    25from django.db import models
    36from django.utils.translation import ugettext_lazy as _
     
    1114        )
    1215
    13     notificationBelongsTo = models.OneToOneField(choices=ENTITY,default= Document,  on_delete=Models.CASCADE)
     16    notificationBelongsTo = models.OneToOneField(choices=ENTITY,default= Document,  on_delete=Models.CASCADE)
     17}}}
     18 
    1419
    1520This would allow for an option to choose the relation from a list of objects(that are in this case related models)
Back to Top