This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using RandomNameGeneratorLibrary; | |
namespace VDBCore | |
{ | |
public class Flight |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PostForm(forms.ModelForm): | |
title = forms.CharField(max_length=128) | |
body = forms.CharField(max_length=245, label="Item Description.") | |
class Meta: | |
model = Post | |
fields = ('title', 'body', ) | |
class ImageForm(forms.ModelForm): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for post in posts %} | |
<a href="{% url 'post' post_name_slug=post.slug %}"></a> | |
{% endfor %} | |
{% for post_comments in comments %} | |
{{ post_comments }} | |
{% endfor %} |
NewerOlder