| Issue 7: | Event Status |
‹ Prev
2 of 2
|
| 1 person starred this issue and may be notified of changes. | Back to list |
There could be value in taking event status and changing it from an integer and making it into models.
Status(model.Model)
Status_Change(model.Model)
status = models.ForeignKey(Status)
createdOn = models.DateTimeField(auto_now_add = True)
createdBy = models.ForeignKey(User, related_name='_createdBy')
This way you can pull a log of the status changes to have a running log of status changes. I did notice the fields
createdBy = models.ForeignKey(User, related_name='event_createdBy')
createdOn = models.DateTimeField(auto_now_add = True)
editedBy = models.ForeignKey(User, related_name='event_editedBy')
editedOn = models.DateTimeField(auto_now = True)
Alternatively we could create a log to log Event changes.
Oct 1, 2012
Project Member
#1
m...@umbc.edu
Status:
New
Oct 1, 2012
Potentially, but I'm not 100% sure of the value of having a log of the changes. All the events will eventually cycle through all stages. Additionally, the status integer is currently not being used by a majority of the system, only in a few small parts. It is expected that the meaning of this integer may change. For now, let's leave it the way it is and revisit it later. |