Skip to content
Snippets Groups Projects
models.py 210 B
Newer Older
  • Learn to ignore specific revisions
  • from django.db import models
    
    
    class Images(models.Model):
        image = models.ImageField(
            upload_to='public/images/', null=True, blank=True
            )
    
        def __str__(self):
    
            return str(self.id)