Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Expands the data model for letters (close #10)
name
field to letters, which is required and unique, and used as the string representation. It will default to the currentletter #3
string representation during the migration, though if you run this right after Feature/separate apps #16, this doesn't really matter. Note that this operation requires 3 (!) migration scripts, following django documentation on adding unique non-nullable fields.category
field to letters. Letter categories are a model by themselves, so researchers can add or remove categories as needed.date_active
anddate_written
readonly fields to the admin interface. The values of these fields is based on the actions associated with the letter. They give the date range of, respectively, all actions involving the letters, and the "writing" actions involving the letter.addressees
andsenders
fields to letters.