Restrict a user from creating more than 'n' customers in Django admin -


In Django Administrator, how can I restrict the user from creating more customers than 'N'?

If the customer main model has a InlineModel , Then you just need the specification of max_num property ().

If this is a main model (not inline), then the model admin is the easiest to override the save method and check that there is permission to add additional customers or No.

Comments