quotaholder: Revert migration of log timestamps
Because migrating the timestamp fields of model ProvisionLog from stringto datetime takes too long, we keep them in string format.
Alter migrations 0005 through 0007 introduced in commit 164e64d.
quotaholder: Add management commands for commissions
Add commands `commission-list' and `commission-show' to displaypending commissions. The former supports option `--overdue' torestrict the age of pending commissions.
Refs #3557
quotaholder: Store timestamps using DateTimeField
Add new fields issue_datetime in Commission and issue_datetime,log_datetime in ProvisionLog. Migrate away from custom string-basedissue_time and log_time fields.
quotaholder: pep8 fixes
quotaholder: Lock holdings in a single query
Order by primary key when selecting multiple holdings for update;this most probably ensures that locking will happen in that order.
As per commit 2f90645, we select all holdings for the given holders,rather that specifying all tuples (holder, source, resource), in order...
astakos: Remove some unused imports
Also add a missing import in quotas.py
quotaholder: Ignore force option when releasing
Since negative usage makes no sense, we always check this lowerboundary when issuing a commission.
astakos: Adapt tests to 2.6-style unittest
Define assertGreater, assertIn, assertRaises in snf_django.utils.testing
quotaholder: Unify included data in overLimit errors
Replace `available' with `usage' and `limit' in NoQuantityErrorto make it similar to NoCapacityError.
quotaholder: Allow resolving empty commissions
When resolving a pending commission, handle the case where the commissionhas been issued with no provisions.
quotaholder: Add migrations
Migration 0001 should be faked on an existing database.Migration 0002 adds new fields.Migration 0003 populates the new fields based on the old ones.Migration 0004 deletes unneeded fields and tables.
Revert quotaholder's name to quotaholder_app
In order to facilitate migrations.