Skip to content

Instantly share code, notes, and snippets.

@ddahan
Created January 4, 2017 16:36
Show Gist options
  • Save ddahan/32da25444d6ab554e08ce035bb6fe0f7 to your computer and use it in GitHub Desktop.
Save ddahan/32da25444d6ab554e08ce035bb6fe0f7 to your computer and use it in GitHub Desktop.
class Event(TimeStampedModel):
''' Classe abstraite servant de base aux modèles ScanEvent et
UseRewardEvent. N'est pas représenté en base puisqu'abstrait. '''
is_cancelled = models.BooleanField(default=False)
# ... autres attributs communs
class Meta:
abstract = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment