Enforce disk storage quota

Based on !121 (merged)

Closes #454 (closed)

Image/model upload, import and training are deactivated when the user has reached his quota. I included training since the user can upload models/override one and therefore increase his disk storage quota through this action.

I might have forgotten to disable some hidden actions though, could you please tell me if I missed something @Lauxley?

Also to enforce quotas on your local instance, you should add this to your local settings:

DISABLE_QUOTAS = False

QUOTA_DISK_STORAGE = 150 <-- any positive integer in Mb

Quotas are disabled by default for all instances. :)

Edited by Eva Bardou

Merge request reports

Loading