Added linktype to externallink class and made it non-abstract.
This commit is contained in:
		@@ -4,9 +4,9 @@ from django.utils.translation import ugettext_lazy as _
 | 
			
		||||
from lostplaces.models.place import PlaceAsset
 | 
			
		||||
 | 
			
		||||
class ExternalLink(PlaceAsset):
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    class Meta:
 | 
			
		||||
        abstract = True
 | 
			
		||||
        abstract = False
 | 
			
		||||
 | 
			
		||||
    url = models.URLField(
 | 
			
		||||
        max_length=200,
 | 
			
		||||
@@ -16,6 +16,12 @@ class ExternalLink(PlaceAsset):
 | 
			
		||||
        max_length=100,
 | 
			
		||||
        verbose_name=_('link text')
 | 
			
		||||
    )
 | 
			
		||||
    linktype = models.CharField(
 | 
			
		||||
        max_length=20,
 | 
			
		||||
        verbose_name=_('link type'),
 | 
			
		||||
        blank=True,
 | 
			
		||||
        null=True
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
class PhotoAlbum(ExternalLink):
 | 
			
		||||
    pass
 | 
			
		||||
    pass
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user