In Django Administrator, how can I restrict the user from creating more customers than 'N'?
If the If this is a main model (not inline), then the model admin is the easiest to override the customer main model has a
InlineModel , Then you just need the specification of
max_num property ().
save method and check that there is permission to add additional customers or No.
Comments
Post a Comment