Skip to content

Commit

Permalink
docs: Added hint to never change date_created attribute of a Donation…
Browse files Browse the repository at this point in the history
…Project instance.
  • Loading branch information
Nico-AP committed Jul 9, 2024
1 parent a851042 commit faf1479
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ddm/models/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ class DonationProject(models.Model):
max_length=50,
help_text='Project Name - for internal organisation only (can still be changed later).'
)

# Note: Value of "date_created" attribute must not be changed after
# instance creation as it is used for en-/decryption.
date_created = models.DateTimeField(default=timezone.now)
owner = models.ForeignKey(
'ResearchProfile',
Expand Down

0 comments on commit faf1479

Please sign in to comment.