mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-18 20:37:36 +00:00
Use logon not cookie when editing pages
This commit is contained in:
@@ -78,7 +78,12 @@ class Expedition(TroggleModel):
|
||||
return reverse("expedition", args=[self.year])
|
||||
|
||||
class Person(TroggleModel):
|
||||
"""single Person, can go on many years"""
|
||||
"""single Person, can go on expo many years
|
||||
|
||||
Note that the class "User" and the class "Group
|
||||
are standrd Django classes
|
||||
definied in django.contrib.auth.models
|
||||
"""
|
||||
|
||||
first_name = models.CharField(max_length=100)
|
||||
last_name = models.CharField(max_length=100)
|
||||
@@ -100,8 +105,7 @@ class Person(TroggleModel):
|
||||
def get_absolute_url(self):
|
||||
# we do not use URL_ROOT any more.
|
||||
return reverse("person", kwargs={"slug": self.slug})
|
||||
return reverse("person", kwargs={"first_name": self.first_name, "last_name": self.last_name})
|
||||
|
||||
|
||||
class Meta:
|
||||
verbose_name_plural = "People"
|
||||
ordering = ("orderref",) # "Wookey" makes too complex for: ('last_name', 'first_name')
|
||||
|
||||
Reference in New Issue
Block a user