Python django.db.models.permalink() Examples

The following are 5 code examples for showing how to use django.db.models.permalink(). These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example.

You may check out the related API usage on the sidebar.

You may also want to check out all available functions/classes of the module django.db.models , or try the search function .

Example 1
Project: mendelmd   Author: raonyguimaraes   File: models.py    License: BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def __str__(self):
        return self.name

    # @models.permalink
    # def get_absolute_url(self):
    # 	return ('individual-new',) 
Example 2
Project: mendelmd   Author: raonyguimaraes   File: models.py    License: BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def __str__(self):
        return self.name

    # @models.permalink
    # def get_absolute_url(self):
    # 	return ('individual-new',) 
Example 3
Project: mendelmd   Author: raonyguimaraes   File: models.py    License: BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def __str__(self):
        return self.name

    # @models.permalink
    # def get_absolute_url(self):
    # 	return ('individual-new',) 
Example 4
Project: django-croppie   Author: dima-kov   File: models.py    License: MIT License 5 votes vote down vote up
def __str__(self):
        return self.name

    # @models.permalink
    # def get_absolute_url(self):
    #     return ('') 
Example 5
Project: noteshrinker-django   Author: delneg   File: models.py    License: MIT License 5 votes vote down vote up
def __str__(self):
        return self.file.name

    # @models.permalink
    # def get_absolute_url(self):
    #     return ('index', )