conflicts resolved

This commit is contained in:
Ju Luiselli 2020-02-19 20:15:07 +00:00
commit 316a9448a4
3 changed files with 5 additions and 0 deletions

View file

@ -33,6 +33,9 @@ class Profile(models.Model):
def __str__(self):
return self.full_name
def birthday():
return self.birth_date.strftime("%d%m")
class Department(models.Model):
name = models.CharField(max_length=255, verbose_name=_("nom du département"))

View file

@ -12,4 +12,5 @@
</ul>
</div>
{% endblock %}

View file

@ -38,6 +38,7 @@ def fiche_modif(request):
return render(request, "fiches/fiches_modif.html", {"form": form})
@login_required
def home(request):
if request.method == "POST":