1. Dan Jacob
  2. newsmeme

Commits

danjac  committed 79f5170

photo subclass

  • Participants
  • Parent commits fdb2451
  • Branches photos

Comments (0)

Files changed (2)

File newsmeme/models/photos.py

View file
+from newsmeme.extensions import db, uploads
+from newsmeme.models.posts import Post
+
+class Photo(Post):
+
+    __mapper_args__ = {'polymorphic_identity' : 'photo'}

File newsmeme/views/photos.py

View file
+from flask import Module
+
+photos = Module(__name__)
+
+