Limit quantities in Django database

0

I am writing to you because I can not find an answer to my problem. I have a small database with the following model

from django.db import models
class Socio(models.Model):
    nroSoc = models.IntegerField(primary_key=True, null=False, blank=False)
    dni = models.IntegerField(unique=True, null=False, blank=False)
    nombre = models.CharField(max_length=15)
    apellido = models.CharField(max_length=15)

And I have to limit the number of records to be saved to 200, how can I handle it?

Thank you very much

    
asked by Matias Allegranza 12.10.2018 в 17:14
source

0 answers