Compare commits
No commits in common. "86f04c08ff3f140d4aa99fb7433c4c4e4a1d62e1" and "f5fb33c2c5f6b24b077a01a7e5edba7100916f70" have entirely different histories.
86f04c08ff
...
f5fb33c2c5
@ -24,7 +24,7 @@ user.explorer
|
||||
Currently the explorer profile is used by the abstract model 'Submittable' and has the following realated names/fiels:
|
||||
- [places](###place) A list containing all (lost) places the user has submitted
|
||||
- [placeimages](###placeimages) A list containing all images relating a place that a user has submitted
|
||||
- [externallinks](###externallinks) A list of all photo albums a explorere has submitted
|
||||
- [photoalbums](###photoalbums) A list of all photo albums a explorere has submitted
|
||||
|
||||
|
||||
### Taggable
|
||||
@ -141,3 +141,15 @@ This model represents an URL to an external website. External Link is an PlaceAs
|
||||
the URL to the target
|
||||
`label`
|
||||
the label that is shown on the website
|
||||
|
||||
### PhotoAlbum
|
||||
Loacation: `lostplaces.models.external_link.PhototAlbum`
|
||||
Import From: `lostplaces.models.PhotoAlbum`
|
||||
#### Super Classes
|
||||
- django's `models.Model`
|
||||
- [lostplaces.models.Submittable](###submittable)
|
||||
- [lostplaces.models.PlaceAsset](###placeasset)
|
||||
- [lostplaces.models.ExternalLink](###externallink)
|
||||
|
||||
A photo album is a link to an external site that is meant to contain photos of the place it is referenced in. It
|
||||
does not have any fields, just the ones inherited from it's super class [ExternalLink](###externallink).
|
@ -1,21 +0,0 @@
|
||||
# Generated by Django 3.2.7 on 2021-10-02 02:37
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('lostplaces', '0011_remove_migrated_photoalbum_data'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='externallink',
|
||||
name='linktype',
|
||||
field=models.CharField(blank=True, choices=[('youtube', 'YouTube'), ('vimeo', 'Vimeo'), ('flickr', 'Flickr'), ('googlephotos', 'Google Photos'), ('photoalbum', 'Photo album')], max_length=20, null=True, verbose_name='link type'),
|
||||
),
|
||||
migrations.DeleteModel(
|
||||
name='PhotoAlbum',
|
||||
),
|
||||
]
|
@ -3,14 +3,6 @@ from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from lostplaces.models.place import PlaceAsset
|
||||
|
||||
LINK_TYPES = (
|
||||
('youtube', 'YouTube'),
|
||||
('vimeo', "Vimeo"),
|
||||
('flickr', 'Flickr'),
|
||||
('googlephotos', "Google Photos"),
|
||||
('photoalbum', "Photo album")
|
||||
)
|
||||
|
||||
class ExternalLink(PlaceAsset):
|
||||
|
||||
class Meta:
|
||||
@ -25,9 +17,11 @@ class ExternalLink(PlaceAsset):
|
||||
verbose_name=_('link text')
|
||||
)
|
||||
linktype = models.CharField(
|
||||
choices=LINK_TYPES,
|
||||
max_length=20,
|
||||
verbose_name=_('link type'),
|
||||
blank=True,
|
||||
null=True
|
||||
)
|
||||
|
||||
class PhotoAlbum(ExternalLink):
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user