Skip to content

Instantly share code, notes, and snippets.

@lozadaOmr
Last active May 28, 2017 16:00
Show Gist options
  • Save lozadaOmr/ff7e4586d6a91bb9cb60fba51a90c6da to your computer and use it in GitHub Desktop.
Save lozadaOmr/ff7e4586d6a91bb9cb60fba51a90c6da to your computer and use it in GitHub Desktop.
from django.db import models
class Me(models.Model):
good_qualities = ['nice']
def good_stuff(self):
return self.good_qualities
class Meta:
abstract = True
verbose_name = "that guy"
class Someone_Else_Not(Me):
name = models.CharField(max_length=255)
class Meta:
verbose_name = "probably the one"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment