Commit Graph

18 Commits

Author SHA1 Message Date
David Taylor
3731c5bba0 Merge branch 'master' into asset_fixes 2019-12-10 22:42:14 +00:00
Matthew Smith
61a46fa1c2 Removed bad migrator, made data addition atomic in migration 0008 2019-12-06 21:29:20 +00:00
ddc23ce4e5 FIX: Prefix field still too limited for legacy data
Fingers crossed this works I don't have the actual data locally... I know I'm making a mess but needs must.

I genuinely hate whoever decided prefixes were a good idea now.
2019-12-06 00:58:39 +00:00
602ccc15ea FIX: Fix missing import
Presumably caused by Matt's IDE being overzealous again. I know I shouldn't be pushing to master but...one line fix...
2019-12-06 00:40:56 +00:00
Matthew Smith
b77615b9b9 Fix handling of prefixed Asset IDs and sorting of the asset list (#382)
* FIX: Remove misleading admin site title

* Moved across assets_id sorting to use proper numeric values. Also mofifies SQL command to find free asset IDs so that it works on postgres.

* Changed generateSampleAssetsData.py to include prefices on some cables.

* Fixed pep8

* Fixed missed migration

* Ensured hidden asset fields are completed on every database write

* CMULTI is a thing, and therefore a max prefix length of 5 cannot be a thing
2019-12-06 00:28:54 +00:00
Matthew Smith
171d5d633e CMULTI is a thing, and therefore a max prefix length of 5 cannot be a thing 2019-12-05 20:43:47 +00:00
Matthew Smith
294c839bc3 Ensured hidden asset fields are completed on every database write 2019-12-05 20:05:15 +00:00
Matthew Smith
73e8bc3326 Fixed missed migration 2019-12-05 17:01:37 +00:00
Matthew Smith
5a081a97c4 Fixed pep8 2019-12-05 16:50:23 +00:00
Matthew Smith
1f0dc9f1ae Changed generateSampleAssetsData.py to include prefices on some cables. 2019-12-05 15:28:07 +00:00
Matthew Smith
8ad0bdf5f3 Moved across assets_id sorting to use proper numeric values. Also mofifies SQL command to find free asset IDs so that it works on postgres. 2019-12-05 15:07:17 +00:00
faa86dbe8d FIX: Remove misleading admin site title 2019-12-05 13:26:35 +00:00
62541194ee CHORE: Fix pep8
mutter mutter mutter, grumble
2019-12-05 13:10:08 +00:00
0d8fd99d92 FIX: Permission errors
This fixes keyholders being unable to see financials information or create assets. (Well, the latter needs anyone to be able to create assets before it is fully fixed)
2019-12-05 13:00:47 +00:00
9d51a82f31 FIX: Fix asset sample data generation 2019-12-05 12:56:22 +00:00
c059227d5d Revert "CHANGE: Restrict viewing asset DB to keyholders."
This reverts commit 2c334196d5.
2019-12-05 12:42:05 +00:00
2c334196d5 CHANGE: Restrict viewing asset DB to keyholders.
This is in line with what it was when it was on the Shared Drive.
2019-12-04 23:59:39 +00:00
4f036af85a Create the Asset Database (#363) 2019-12-04 23:14:27 +00:00