circuit
circuit social network code-documentation
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
posts.models.Hashtag Class Reference

Inherits Model.

Public Member Functions

def __str__ (self)
 

Static Public Member Functions

def filter_posts_by_hashtag (hashtag_name)
 
def top ()
 

Static Public Attributes

tuple name = models.CharField(max_length=255)
 
tuple posts = models.ManyToManyField(Post)
 

Member Function Documentation

def posts.models.Hashtag.__str__ (   self)
def posts.models.Hashtag.filter_posts_by_hashtag (   hashtag_name)
static
Filters posts by hashtag.

@param hashtag_name the hashtag name to filter with
@return the posts that have used this hashtag
def posts.models.Hashtag.top ( )
static
Shows most used hashtags in last 24 hours
@return filters hashtags in descending order from last 24 h

Member Data Documentation

tuple posts.models.Hashtag.name = models.CharField(max_length=255)
static
tuple posts.models.Hashtag.posts = models.ManyToManyField(Post)
static

The documentation for this class was generated from the following file: