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.

This commit is contained in:
Matthew Smith
2019-12-05 15:02:48 +00:00
parent faa86dbe8d
commit 8ad0bdf5f3
3 changed files with 58 additions and 6 deletions

View File

@@ -7,6 +7,7 @@ class AssetForm(forms.ModelForm):
class Meta:
model = models.Asset
fields = '__all__'
exclude = ['asset_id_prefix', 'asset_id_number']
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)