Skip to content

Instantly share code, notes, and snippets.

@Kristian-Roopnarine
Created February 10, 2020 20:36
Show Gist options
  • Save Kristian-Roopnarine/c66ddfdc6f0fdc42fec18b605d88151c to your computer and use it in GitHub Desktop.
Save Kristian-Roopnarine/c66ddfdc6f0fdc42fec18b605d88151c to your computer and use it in GitHub Desktop.
from django.db import models
# Create your models here.
class ProjectInfo(models.Model):
name = models.CharField(max_length=30)
description = models.TextField(max_length=200)
github = models.URLField()
demo = models.URLField(blank=True)
image = models.FileField(upload_to="photos/",blank=True)
show = models.BooleanField(default=False)
def __str__(self):
return self.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment