mirror of
https://github.com/kristoferssolo/FOSSDB.git
synced 2025-10-21 17:50:35 +00:00
Renamed variables
This commit is contained in:
parent
ff396a1192
commit
6c259d2e96
@ -32,8 +32,8 @@ class Project(models.Model):
|
||||
author = models.ForeignKey(User, on_delete=models.CASCADE)
|
||||
name = models.CharField(max_length=255, null=False)
|
||||
description = models.TextField()
|
||||
license = models.ManyToManyField(License)
|
||||
create_date = models.DateTimeField(auto_now_add=True)
|
||||
licenses = models.ManyToManyField(License)
|
||||
date_created = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.author} | {self.name}"
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<br>
|
||||
<p>{{ project.create_date }}</p>
|
||||
<p>{{ project.date_created }}</p>
|
||||
{% empty %}
|
||||
<p>No projects yet (</p>
|
||||
{% endfor %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user