Skip to content

Simpe model, Used in other Django projects to "tag" content.

Notifications You must be signed in to change notification settings

raprasad/Poor-Mans-Tag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Used in other Django projects to "tag" content.

For example both a NewsStory and FacultyMember may have an M2M relationship to Tag:

    class NewsStory(models.Model):
        ...
        tags = models.ManytoManyField(Tag, null=True, blank=True)   # optional


    class FacultyMember(models.Model):
        ...
        tags = models.ManytoManyField(Tag, null=True, blank=True)   # optional

In this example, the sharing of tags allows a NewsStory to be loosely linked to a FacultyMember as well as other models, etc. Or the tags only used within a single model may be used for classification.

(Why a separate "repository"? Don't ask.)

About

Simpe model, Used in other Django projects to "tag" content.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages