Ralph Asset Management System - User Group

Default Asset requirements

I’ve just started playing with the docker version of 20190627.1, and after setting up the basic manufacturer/Server room/Rack/etc, when I go to add my hardware assets, the barcode/SN is required, which I was not planning to insert, and certainly not immediately. Is there any way I can change this to not be required so I don’t have to just put random junk in these fields?

Thanks,
Jason

Hi,Jason

You could try to remove these values codes from admin.py

Site:src/ralph/data_center/admin.py

Code:

    fieldsets = (
        (_('Basic info'), {
            'fields': (
                'hostname', 'model', 'status', 'barcode', 'sn', 'niw',
                'required_support', 'remarks', 'tags', 'property_of',
                'firmware_version', 'bios_version',
            )
        }),

Remove the code: ‘barcode’, ‘sn’,