2019-03-02 12:04:27 +01:00
|
|
|
from django.contrib import admin
|
2019-03-02 12:47:44 +01:00
|
|
|
from django.contrib.admin import register
|
2019-03-02 12:04:27 +01:00
|
|
|
from django.contrib.auth.admin import UserAdmin
|
2019-03-03 18:45:47 +01:00
|
|
|
|
2019-03-03 19:50:09 +01:00
|
|
|
from .models import Friend, FriendLocation
|
2019-03-02 12:04:27 +01:00
|
|
|
|
|
|
|
admin.site.register(Friend, UserAdmin)
|
2019-03-02 12:47:44 +01:00
|
|
|
|
|
|
|
|
|
|
|
@register(FriendLocation)
|
|
|
|
class FriendLocationAdmin(admin.ModelAdmin):
|
|
|
|
fieldsets = [
|
|
|
|
(None, {'fields': ('friend',)}),
|
|
|
|
('Place', {'fields': ('latitude', 'longitude')}),
|
|
|
|
('Dates', {'fields': ('start_date', 'end_date')}),
|
|
|
|
]
|