Admin and stats on Pro
parent
f5a4452d94
commit
b461d8ee74
|
@ -5,7 +5,7 @@ from snipts.models import Favorite, Snipt
|
|||
|
||||
class SniptAdmin(admin.ModelAdmin):
|
||||
readonly_fields = ('user',)
|
||||
list_display = ('title', 'slug', 'user', 'lexer', 'public', 'blog_post', 'created', 'modified', 'publish_date',)
|
||||
list_display = ('title', 'slug', 'views', 'favs', 'user', 'lexer', 'public', 'blog_post', 'created', 'modified', 'publish_date',)
|
||||
list_filter = ('blog_post',)
|
||||
search_fields = ('title', 'slug', 'user__username', 'lexer', 'id', 'key',)
|
||||
ordering = ('-created',)
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<h6>Current Pro features:</h6>
|
||||
<ul>
|
||||
<li>No advertisements (including Amazon books).</li>
|
||||
<li>Stats on "views" and "favorites" for your snipts.</li>
|
||||
<li>“Pro” badge throughout the site.</li>
|
||||
<li>Custom domain for your <a href="https://blog.snipt.net/announcing-the-sniptnet-blogging-platform/">Snipt blog</a>. Contact <a href="mailto:support@snipt.net">support@snipt.net</a> to set up.</li>
|
||||
<li>You’re <strong>supporting</strong> current and future development. This stuff takes time and money.</li>
|
||||
|
|
Loading…
Reference in New Issue