Some parts of my form is rendering correctly but some arent Django

I am creating a ticket app in my django project. When I create a ticket and submit, parts of the form render correctly in the frontend except three fields. These are the, and ticket.description, in the frontend these fields display as 'None' but everything else renders as its supposed to in the frontend. I also checked my admin page and i see that neither the Ticket nor the Category get created properly. I'm not quite sure how to proceed.

Here's what i have so far

class Category(models.Model):
    name = models.CharField(max_length=200, null=True)
    def __str__(self):
        return or ''
class Ticket(models.Model):
    STATUS = (
        (True, 'Open'),
        (False, 'Closed')
        ('None', 'None'),
        ('Low', 'Low'),
        ('Medium', 'Medium'),
        ('High', 'High')
    TYPE = (
        ('Misc', 'Misc'),
        ('Bug', 'Bug'),
        ('Help Needed', 'Help Needed'),
        ('Concern', 'Concern'),
        ('Question', 'Question')
    host = models.ForeignKey(CustomUser, on_delete=models.SET_NULL, null=True, related_name='host')
    category = models.ForeignKey(Category, on_delete=models.SET_NULL, null=True, related_name='category')
    name = models.CharField(max_length=200, null=True)
    status = models.BooleanField(choices=STATUS, default=True)
    priority = models.TextField(choices=PRIORITIES, default='None', max_length=10)
    type = models.TextField(choices=TYPE, default='Misc', max_length=15)
    description = RichTextField(null=True, blank=True)
    # description = models.TextField(null=True, blank=True)
    participants = models.ManyToManyField(CustomUser, related_name='participants', blank=True)
    updated = models.DateTimeField(auto_now=True)
    created = models.DateTimeField(auto_now_add=True)
    class Meta:
        ordering = ['-updated', '-created']
    def __str__(self):
        return or ''

view for creating a ticket

def createTicket(request):
    form = TicketForm()
    categories = Category.objects.all()
    if request.method == 'POST':
        category_name = request.POST.get('category')
        category, created = Category.objects.get_or_create(name=category_name)
        ticket = Ticket.objects.create(
            host = request.user,
        return redirect('ticket',
    context = {'form': form, 'categories': categories}
    return render(request, 'projects/ticket_form.html', context)

view for ticket page

def ticket(request, pk):
    ticket = Ticket.objects.get(id=pk)
    ticket_messages = ticket.message_set.all()
    participants = ticket.participants.all()
    if request.method == 'POST':
        message = Message.objects.create(
        return redirect('ticket',
    context = {'ticket': ticket, 'ticket_messages': ticket_messages, 
               'participants': participants}
    return render(request, 'projects/ticket.html', context)

here is part of the template for the ticket page

<div class="column-layout">
                    <div class="main-column">
                        {{ticket.description|safe }}
                    <div class="sidebar-two">
                        <span style="white-space: pre-line"><label for="room_topic">Enter a Category</label>
                            <input required type="text" value="{{}}" name="topic" list="topic-list" />
                            <datalist id="topic-list">
                            <select id="room_topic">
                              {% for category in categories %}
                              <option value="{{}}">{{}}</option>
                              {% endfor %}
                          <div class="form__group">
                            <span style="white-space: pre-line"><label for="room_name">Assigned to</label>
                          <div class="form__group">
                            <span style="white-space: pre-line"><label for="room_name">Ticket Status</label>
                          <div class="form__group">
                            <span style="white-space: pre-line"><label for="room_name">Ticket Priorities</label>
                          <div class="form__group">
                            <span style="white-space: pre-line"><label for="room_name">Ticket Type</label>

This is what it looks like in the admin page. The Ticket database looks the same

enter image description here

Back to Top